I have implemented Postback.When I am using the following code, the postback is working but it is not working with Zerodha Postback. Can you please help in this ?
I was checking orderbook for your registered app and it seems like all of the orders has been placed from Kite web and not through your app. Your app will be getting postbacks only for the orders placed via itself and not for other platforms for the user id.
I sent an order using my Kite Connect api also. It also doesnot result in the postback. Does the order need to come from https://database-165705.appspot.com/ ? Will the postback not be generated if I use my local system which has a different address than my application mentioned above and place order via Kite connect api?
The order was placed and rejected as well. I did not receive any postback. Is it the case that first I need to have an open position and only if the open Position changes to cancelled or complete, I will receive a postback ?
If I simply place an order and it got rejected , than it would not come in the postback message that the order got rejected ?
So, I got a postback for the completed order but not for the rejected one.
Following was the rejected order: PRICE ₹0.00 TRIGGER PRICE ₹0.00 ORDER PLACED BY DR1125 ORDER TYPE MARKET PRODUCT / VALIDITY MIS / DAY TIME 2017-06-30 10:03:10 ORDER ID 170630000182404 EXCHANGE ORDER ID — EXCHANGE TIME — STATUS REJECTED STATUS MESSAGE rms:margin exceeds,required:109.70, available:3.04 for entity account-dr1125 across exchange across segment across product
Can you check once and let me know. It would be great help as I am about to go live with the new callback feature implemented in my Strategy.
Will the postback not be generated if I use my local system which has a different address than my application mentioned above and place order via Kite connect api?
It is based on api_key of the app from where the order was originated.
from kiteconnect import KiteConnect
specs = {}
specs['access_token']="xxxxx"
specs['api_key'] = "yyyyyyyy"
kite = KiteConnect(specs['api_key'])
kite.set_access_token(specs['access_token'])
r = kite.order_place(exchange ="NSE",tradingsymbol = "ACC" ,quantity = 1, transaction_type = "BUY",order_type = "MARKET",product ="MIS")
The order was placed and rejected as well. I did not receive any postback. Is it the case that first I need to have an open position and only if the open Position changes to cancelled or complete, I will receive a postback ?
If I simply place an order and it got rejected , than it would not come in the postback message that the order got rejected ?
I got a postback for the completed order but not for the rejected one.
Following was the rejected order:
PRICE
₹0.00
TRIGGER PRICE
₹0.00
ORDER PLACED BY
DR1125
ORDER TYPE
MARKET
PRODUCT / VALIDITY
MIS / DAY
TIME
2017-06-30 10:03:10
ORDER ID
170630000182404
EXCHANGE ORDER ID
—
EXCHANGE TIME
—
STATUS
REJECTED
STATUS MESSAGE
rms:margin exceeds,required:109.70, available:3.04 for entity account-dr1125 across exchange across segment across product
Can you check once and let me know. It would be great help as I am about to go live with the new callback feature implemented in my Strategy.