It looks like you're new here. If you want to get involved, click one of these buttons!
{
type: 'single',
condition: {
exchange: 'NSE',
tradingsymbol: 'JMA',
trigger_values: [ 35.15 ],
last_price: 31
},
orders: [
{
exchange: 'NSE',
tradingsymbol: 'JMA',
transaction_type: 'SELL',
quantity: 241,
order_type: 'LIMIT',
product: 'CNC',
price: 35.15
}
]
}
However it is throwing StatusCodeError: 400 - "{\"status\":\"error\",\"message\":\"Invalid order params.\",\"data\":null,\"error_type\":\"InputException\"}"
Order params seem to be correct. Which client are you using?
Content-Type
header being used. You will need to useapplication/x-www-form-urlencoded
content-type header for the request here. Go through the documentation here.{
type: 'single',
condition: json.dumps({
exchange: 'NSE',
tradingsymbol: 'JMA',
trigger_values: [ 35.15 ],
last_price: 31
}),
orders: json.dumps([
{
exchange: 'NSE',
tradingsymbol: 'JMA',
transaction_type: 'SELL',
quantity: 241,
order_type: 'LIMIT',
product: 'CNC',
price: 35.15
}
])
}