Order id printed at time of order placement doesn't match any of the orders in the orders() list

sensexboy
Hi All,
I am trying to check the status of the order once i place it and this is what i am doing:
a) Place the order and then get its order it (returned from function)
b) get list of all orders kite.orders() and find the order status using the order id

But the order id that i get as step a) isnt in the list at all ?

Can someone please guide

Code:

ORDER= [
{
"exchange":"NFO",
"tradingsymbol": "NIFTY22JUL16300CE",
"transaction_type": kite.TRANSACTION_TYPE_SELL,
"quantity": 1,
"order_type": "LIMIT",
"product": "NRML",
"price": 300
},
{
"exchange":"NFO",
"tradingsymbol": "NIFTY22JUL16300CE",
"transaction_type": kite.TRANSACTION_TYPE_SELL,
"quantity": 1,
"order_type": "LIMIT",
"product": "NRML",
"price": 400
}]
trigger_id = kite.place_gtt(trigger_type=kite.GTT_TYPE_OCO, tradingsymbol='NIFTY22JUL16300CE',
exchange='NFO', trigger_values=[300 ,400], last_price=322,orders=ORDER)
print(trigger_id)

the trigger id that i can get is :110010324

The orders from order list though has much bigger numbers like:
220725101881150 and so none of these are matching

Sign In or Register to comment.