Error parsing response (kt-oms)

srinidhihebbar
facing this error a couple of times a week ..issue is not resolved even after handling the error and retrying

available_margin=(kite.margins()["equity"]["net"])
DataException: Error parsing response (kt-oms)




  • SRIJAN
    SRIJAN edited April 22
    This means OMS hasn't responded to the request sent . Are you fetching margins multiple times ??
    If yes,then you can add some delay and then retry or as an alternative, fetch funds value at the start of the trading day and keep reducing the required order placed amount, which you can fetch from the order margin API.
  • srinidhihebbar
    srinidhihebbar edited April 22
    I am fetching few times a day once in the morning and once after every order update i place close to 8 orders a day ,I am not polling margins multiple times a second
  • SRIJAN
    You have to handle the exception and retry after some delay.
Sign In or Register to comment.