CURL:
postman request POST ‘``https://api.dhan.co/v2/orders``’
–header ‘Accept: application/json’
–header ‘Content-Type: application/json’
–header ‘access-token: ***’
–body ‘{
“dhanClientId”:“***”,
“transactionType”:“BUY”,
“exchangeSegment”:“NSE_FNO”,
“productType”:“MARGIN”,
“orderType”:“MARKET”,
“validity”:“DAY”,
“securityId”:“66071”,
“quantity”: 130,
“disclosedQuantity”: 0,
“price”: 0.0,
“afterMarketOrder”:true,
“amoTime”:“OPEN”
}’
Above curl have to create MARKET order. but its creating LIMIT order, please take a look at below order screenshot:
This is not just issue with AMO order but on open market as well.
—
See below order payload im trying to send and its generating wrong order on dhan app:
Placing order with payload: {'dhanClientId': '***', 'transactionType': 'BUY', 'exchangeSegment': 'NSE_FNO', 'productType': 'MARGIN', 'orderType': 'MARKET', 'validity': 'DAY', 'securityId': 66071, 'quantity': 130, 'disclosedQuantity': 0, 'price': 0.0, 'afterMarketOrder': True, 'boProfitValue': None, 'boStopLossValue': None, 'triggerPrice': 0.0, 'correlationId': '***', 'amoTime': 'OPEN'}
Order rejected as going with LIMIT and that too with wrong price:



