I see the order is successfully placed ((order id: 171017000220682) ), but I don't see two corresponding sell orders - one for 552 and other one for stop loss. Am I doing something wrong?
Hi, The successful response means order placement is successful not execution. You need to fetch orderbook after that and check for order status or use postbacks to get notified when order is executed. You can check out documentation. Please post new queries on the new thread, it will help others who are facing the same issue.
I think tradingsymbol is RELCAPITAL.
That solved it, but now am running into another issue. I placed a bracket order using the following code.
payload = {}
payload['api_key']=api_key
payload['access_token']=access_token
payload['tradingsymbol']="RELCAPITAL"
payload['exchange']="NSE"
payload['transaction_type']="BUY"
payload['order_type']="LIMIT"
payload['quantity']=1
payload['product']="MIS"
payload['validity']="DAY"
payload['price']=550
payload['squareoff_value']=552
payload['stoploss_value']=0.5
response = requests.post("https://api.kite.trade/orders/regular", data=payload)
response_dict=response.json()
print(response_dict['data']['order_id'])
I see the order is successfully placed ((order id: 171017000220682) ), but I don't see two corresponding sell orders - one for 552 and other one for stop loss. Am I doing something wrong?
thanks!
The successful response means order placement is successful not execution.
You need to fetch orderbook after that and check for order status or use postbacks to get notified when order is executed.
You can check out documentation.
Please post new queries on the new thread, it will help others who are facing the same issue.