Specified Order to be Market but turned into Limit
-
// call buy for hedge const callOrderResponse = await clientSession.smartApi.placeOrder({ variety: "NORMAL", tradingsymbol: hedgeOptions.call!.symbol, symboltoken: hedgeOptions.call!.token, transactiontype: "BUY", exchange: this.optionsConfig.activeIndex.chain_exchange, ordertype: "MARKET", producttype: "CARRYFORWARD", duration: "DAY", quantity: clientSession.TOTAL_LOTS * this.optionsConfig.activeIndex.quantity_per_lot, }); this.logger.info(callOrderResponse); // put buy for hedge const putOrderResponse = await clientSession.smartApi.placeOrder({ variety: "NORMAL", tradingsymbol: hedgeOptions.put!.symbol, symboltoken: hedgeOptions.put!.token, transactiontype: "BUY", exchange: this.optionsConfig.activeIndex.chain_exchange, ordertype: "MARKET", producttype: "CARRYFORWARD", duration: "DAY", quantity:clientSession.TOTAL_LOTS * this.optionsConfig.activeIndex.quantity_per_lot, }); this.logger.info(putOrderResponse);
Ran the above code today for some options.
The ordertype can be seen as "MARKET", when the order got placed, got the response :{ status: true, message: 'SUCCESS', errorcode: '', data: { script: 'SENSEX2411273100CE', orderid: '240112000072279', uniqueorderid: 'eb008852-18eb-49af-9999-850a304c3a6f' } } { status: true, message: 'SUCCESS', errorcode: '', data: { script: 'SENSEX2411270600PE', orderid: '240112000072292', uniqueorderid: '5e25fb58-c6eb-4704-bce3-faf671ebd431' } }
but for one of these orders the orderType in the angel platform can be seen as LIMIT which was not expected :
-
Hi @shashwatVar
Apologies for delayed response.
We are analyzing on this issue with the order ID 240112000072279.
Please share us the client code.Thanks & Regards,
SmartAPI team -
@Moderator_2 client code: P396062
-
Hi @shashwatVar
Noted. We are analyzing on the issue. Will update you as soon as possible
Thanks & Regards,
SmartAPI team -
Hi @shashwatVar
Apologies for delayed response.
Please note
Our smartAPI has accepted the order as Market as expected.
Since there was no opposite(Buy <-> Sell) orders available for your order, exchange has converted this to limit.Thanks & Regards,
SmartAPI team