It looks like you're new here. If you want to get involved, click one of these buttons!
13Feb17 09:15:02 : KiteConnectViewModel.ParseResponse : OrderId = {"status": "error", "message": "Couldn't connect to nest gateway", "error_type": "NetworkException"}However the order was successfully placed the orderId being 170213000012452
13Feb17 09:15:02 : KiteConnectViewModel.ParseResponse : OrderId : error (BadGateway|NetworkException) : Couldn't connect to nest gateway
13Feb17 15:19:09 : KiteConnectViewModel.OnOrdersReceived : {"order_id":"170213000487435","exchange_order_id":"1200000004188242","order_timestamp":"2017-02-13 15:19:07","exchange_timestamp":"13-Feb-2017 15:19:07","status":"CANCELLED","status_message":"","placed_by":"USER ID","user_id":"USER ID","tradingsymbol":"RPOWER","exchange":"NSE","transaction_type":"BUY","order_type":"LIMIT","quantity":1,"filled_quantity":0,"unfilled_quantity":1,"price":43,"average_price":0,"trigger_price":0,"product":"MIS","validity":"DAY","tag":"d55adc3e","checksum":"2d6cf73d52166a3c04ca61924660956b7585ce9a76a86bf2324bc7978fca0550"}
13Feb17 15:19:09 : KiteConnectViewModel.OnOrderReceived : Is api submitted = True
13Feb17 15:19:09 : KiteConnectViewModel.OnOrdersReceived : {"order_id":"170213000487435","exchange_order_id":"1200000004188242","order_timestamp":"2017-02-13 15:19:07","exchange_timestamp":"13-Feb-2017 15:19:07","status":"CANCELLED","status_message":"","placed_by":"USER ID","user_id":"USER ID","tradingsymbol":"RPOWER","exchange":"NSE","transaction_type":"BUY","order_type":"LIMIT","quantity":1,"filled_quantity":0,"unfilled_quantity":0,"price":43,"average_price":0,"trigger_price":0,"product":"MIS","validity":"DAY","tag":"d55adc3e","checksum":"2d6cf73d52166a3c04ca61924660956b7585ce9a76a86bf2324bc7978fca0550"}
13Feb17 15:19:09 : KiteConnectViewModel.OnOrderReceived : Is api submitted = True
13Feb17 09:15:10 : KiteConnectViewModel.ParseResponse : OrderId = {"status": "success", "data": {"order_id": "170213000013217"}}I sent a modification request while the order is still in "open pending" state and the response returns a success (shouldnt be the case)
13Feb17 09:15:22 : KiteConnectViewModel.ParseResponse : OrderId = {"status": "success", "data": {"order_id": "170213000013217"}}
13Feb17 09:21:34 : KiteConnectViewModel.ParseResponse : OrderId = {"status": "success", "data": {"order_id": "170213000020252"}}The client app will go haywire in absence of a due postback. In such scenarios either give postbacks (preferred) or the response should return an exception.
Orders 17013000487435 and 170213000481076 were cancelled from your app. Hence you got postback. We only send postback, if order is placed from your platform. We received 500 from your endpoint, I guess that is the reason for the issue. Check out the following logs, Your point makes sense, in future releases we will send postbacks for order status changes. We have come across this scenario, problem is we don't have sufficient data here. We are in talks with our vendors to fix it. I am afraid that is not possible. User data cannot be shared with a third party app when an action is not originating from the app itself.
This is simply out of consideration for our user's privacy. We are planning to come up with solution wherein, clients can subscribe for each field. Hope that answers your query.
I presume since the postbacks are on an external site you might be reluctant to share any data as that might lead you to legal quicksand. If this is true, then will the next major release, have all the postbacks given the postbacks are planned to be streamed via the websocket itself. Or is the postbacks are linked to the api by design and any modification will require too much overhead? That's good news again.
thanks again and much appreciated for your time.
I am afraid, we can't make changes to postbacks API because postbacks are mainly based on api_key.
We are planning to send order notifications via websockets in future. I hope that serves your purpose.