I am trying to modify a stoplimit order. place_order works well. However modify_order keeps failing. At the time of place order price was 721 . This is my code : data = {
"symbol":"MCX:CRUDEOILM26APR11000CE",
"qty":1,
"type":4,
"side":1,
"productType":"INTRADAY",
"limitPrice":755,
"stopPrice":750,
"validity":"DAY",
"disclosedQty":0,
"offlineOrder":False,
"orderTag":"Automated"
}
response = fyers_handle.place_order(data=data)
order_id = response[‘id’]
print(“order_id:” + str(order_id))
time.sleep(10)
data = {
"id":order_id,
"limitPrice":745,
"stopPrice":740,
"qty":1
}
Always get an error either for stopPrice or limitPrice . {‘code’: -50, ‘message’: ‘stopPrice does not match: 0’, ‘s’: ‘error’, ‘id’: ‘xxx’}. what is wrong here