Upstox team,
Please check below place order request and tell me why it’s failing. The same order request when I place manually on Upstox, it works fine. But, it fails when executed via API.
PlaceOrder request
{
quantity: 1,
product: 'D',
validity: 'DAY',
price: 141,
instrumentToken: 'NSE_EQ|INE782X01033',
orderType: 'SL',
transactionType: 'SELL',
disclosedQuantity: 1,
triggerPrice: 142,
isAmo: false
}
API Response
{
status: 'error',
errors: [
{
errorCode: 'UDAPI100500',
message: 'Something went wrong. Please try again in sometime.',
propertyPath: null,
invalidValue: null,
error_code: 'UDAPI100500',
property_path: null,
invalid_value: null
}
]
}
Note: I already have an open delivery position for this stock.
Please advise what’s wrong.
Thanks.