While fetching order details I am continuously getting this error. Request preparation failed (kitetrade-oms). The order has been placed however as I am not able to get the order details in the program, it still thinks order is not placed. It kind of skews the further logic as it cannot fire back the stop loss order and some other issues.
@SamarthaJana As exception states, time-out is happening at OMS end.So,you need to handle those exceptions at your end,fetch order book and see if above order is placed,if the order is executed fetch respective detail or if not executed place the order again.
As Jegan mentiond, the problem is not while placing the order. Order is placed successfully. However, when i try to run Dim KiteAllOrders As List(Of KiteConnect.Order) = Kite.GetOrders(), it throws the error. And this error is continuous (for me since today morning - 13-May.)
yes , I am facing this issue when calling kite.GetTradedQuantity(orderID);, this issue is there from last friday. whom can resolve this issue? @sujith please help to resolve this issue as soon as possible.
I debugged it further, and it is failing at Kite.GetOrderTrades(OrderID) as well. So you can try those methods related to getting traded order information and should be able to repro it easily.
@Jegan I am not able to get past this issue. If it continues, then will need to change the logic to check the trades. Will need to rely on order data - but it has other hassles like taking care of partially filled orders and then grouping and summarizing etc.
@Jegan, @SamarthaJana, Can you give more details? Are you using the official client or the third-party library? Please do mention the version number of the library. Can you enable debug logs and give us complete stacktrace? Is this consistent or intermittent? Any pattern that this occurs and since when are you facing this issue (this Friday only)?
As exception states, time-out is happening at OMS end.So,you need to handle those exceptions at your end,fetch order book and see if above order is placed,if the order is executed fetch respective detail or if not executed place the order again.
However, when i try to run Dim KiteAllOrders As List(Of KiteConnect.Order) = Kite.GetOrders(), it throws the error. And this error is continuous (for me since today morning - 13-May.)
whom can resolve this issue?
@sujith please help to resolve this issue as soon as possible.
So you can try those methods related to getting traded order information and should be able to repro it easily.
Can you give more details? Are you using the official client or the third-party library? Please do mention the version number of the library. Can you enable debug logs and give us complete stacktrace?
Is this consistent or intermittent? Any pattern that this occurs and since when are you facing this issue (this Friday only)?
https://github.com/zerodhatech/dotnetkiteconnect Version 3.01
There are no updates available for this package.
There is no additional stack trace - entire ex.message is "Request preparation failed (kitetrade-oms)."
This consistent - the following code statement fails all the time.
Very simple repro step:
Dim KiteTradeData As List(Of KiteConnect.Trade) = Kite.GetOrderTrades(some_valid_orderid)