Hi,
Trying to submit GTT order with below header and body,
headers = {
“Authorization”: f"Bearer {access_key}",
“Content-Type”: “application/json”,
“Accept”: “application/json”
}
body = {
'type': 'MULTIPLE',
‘quantity’: 100,
‘product’: ‘D’,
‘rules’: [
{'strategy': 'ENTRY', 'trigger_type': 'IMMEDIATE', 'trigger_price': 128898.0},
{'strategy': 'STOPLOSS', 'trigger_type': 'IMMEDIATE', 'trigger_price': 129189.81711853456}
],
‘instrument_token’: ‘MCX_FO|472779’,
‘transaction_type’: ‘SELL’
}
Getting error : 400 Client Error: Bad Request for url: https://api.upstox.com/v3/order/gtt/place
Could some one please help me understant, what is wrong with this request, for ‘quantity’ tried value 1 as well but getting 400 http code