Create a new order not working as expected

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:

@Dhan @Hardik
This is blocker for me to execute any order.

Read here.

@DSingh Got it. but what we have another alternative solution to make the order like MARKET?

Order like MARKET = MARKET order. You can try reverse engineering the service provider’s website API to place MARKET order. As per SEBI circular, MARKET orders are not possible via official API trading across all service providers.

Understood. but I have my own algo. and I don’t want to depend upon DATA API’s monthly paid service. Thinking what could be best idea to make it work….

Hello @Vaibhav722

Yes, we do apply MPP and convert all Market orders to Limit orders in order to place them, given Market orders are not allowed via APIs.

On the scenario of the converted Limit price out of the LPP change, we have already worked on this and monitoring this as well. If you are facing any particular issue, requesting you to raise the same on apihelp@dhan.co