Bad gateway error

GH3054
I am getting bad gateway error, when I am trying to get the margin for my account. This is very annoying. Can someone help to rectify the error

File "C:\Users\prate\anaconda3\lib\site-packages\kiteconnect\connect.py", line 851, in _get
return self._request(route, "GET", url_args=url_args, params=params, is_json=is_json)

File "C:\Users\prate\anaconda3\lib\site-packages\kiteconnect\connect.py", line 927, in _request
raise exp(data["message"], code=r.status_code)

NetworkException: Bad gateway
  • mridulk
    order placement and order history is totally broken. Even now. This is CRITICAL
  • GH3054
    This is a critical issue, If these basis functions dont work upto the mark, then there are high chances of slippages. Still it is not working. PATHETIC
  • GH3054
    Now getting new error

    ite.basket_order_margins(params,consider_positions=True,mode=None)['final']['total']

    File "C:\Users\prate\anaconda3\lib\site-packages\kiteconnect\connect.py", line 784, in basket_order_margins
    return self._post("order.margins.basket",

    File "C:\Users\prate\anaconda3\lib\site-packages\kiteconnect\connect.py", line 855, in _post
    return self._request(route, "POST", url_args=url_args, params=params, is_json=is_json, query_params=query_params)

    File "C:\Users\prate\anaconda3\lib\site-packages\kiteconnect\connect.py", line 927, in _request
    raise exp(data["message"], code=r.status_code)

    GeneralException: error fetching positions: invalid status: 504
  • joyhrs2002
    orders are not going through, please look into it, this is critical
  • GH3054
    Getting error 500 now
Sign In or Register to comment.