I have a requirement to place a bracket order through Python Kite API. I have got an example of Java client, but getting a sample code for python client would be helpful.
Also, How do I get the pending orders list through python API?
bo python: kite.place_order("ACC",price=1460,variety= kite.VARIETY_BO,exchange=kite.EXCHANGE_NSE,transaction_type=kite.TRANSACTION_TYPE_SELL,quantity=50,squareoff=20,stoploss=10,order_type=kite.ORDER_TYPE_LIMIT,product=kite.PRODUCT_BO, trailing_stoploss=1)
for order status you can call kite.orders() and from there you can find which orders are pending.
Thanks,
Amar
bo python:
kite.place_order("ACC",price=1460,variety= kite.VARIETY_BO,exchange=kite.EXCHANGE_NSE,transaction_type=kite.TRANSACTION_TYPE_SELL,quantity=50,squareoff=20,stoploss=10,order_type=kite.ORDER_TYPE_LIMIT,product=kite.PRODUCT_BO, trailing_stoploss=1)
for order status you can call kite.orders() and from there you can find which orders are pending.