CO Order Error 503 (the API is down)

Shabeershah2002
Shabeershah2002 edited November 2018 in API clients
Today at 3:44:16 PM i have placed a CO order in CRUDEOIL and got API response Error 503 ( Service unavailable : the api is down) , so my application ignored the order , but when i checked the Kite i can see the order went through and it was executed by having TRIGGER PENDING second leg,

Everything was fine at the API end but the response data was having 503 error,

how to overcome this situation ?
Due to this wrong response my algo did many wrong things today.........

Tagged:
  • sujith
    Hi @Shabeershah2002,
    This can happen when OMS doesn't respond to the Kite Trade's request while placing an order.
    The solution is to catch this exception, fetch orderbook and check for the order before doing anything.
  • Shabeershah2002
    hmmm, i have caught the exception and thinking to manage in a way that sending a order Tag for my identification and as you said fetch order book then map the orders to respective trades in my application.

    but the sad thing is how long it will take to discover possible exceptions and critical scenarios then keep tuning the application to handle these kind of situation !!, each time new things keep on adding.

    hope the best.
Sign In or Register to comment.