Place Multi-Order

My code for the Place Multi-Order is ready but I am unable to place any orders, I can see that it is still in Beta phase. When will this be live and ready can you give an estimate?

Hi @indusdev
The Place Multi Order feature is live, allowing you to place multiple orders. Please refer to these example codes for guidance on placing multi orders.

“Beta phase” indicates that this is a newly introduced feature. If users encounter any issues, adjustments can be made as necessary.

@Ketan as mentioned my code is ready but I get an error that says “ERROR:root:Error Placing Order: 400 - {“status”:“error”,“data”:null,“errors”:[{“errorCode”:“UDAPI100500”,“message”:“Segment activation is in progress. Please try after sometime.”,“propertyPath”:null,“invalidValue”:null,“error_code”:“UDAPI100500”,“property_path”:null,“invalid_value”:null,“correlation_id”:“1”},{“errorCode”:“UDAPI100500”,“message”:“Segment
activation is in progress. Please try after sometime.”,“propertyPath”:null,“invalidValue”:null,“error_code”:“UDAPI100500”,“property_path”:null,“invalid_value”:null,“correlation_id”:“2”}],“summary”:{“total”:2,“success”:0,“error”:2,“payload_error”:0}}”

i assumed this to be due to the functionality not being in live phase since the message reads “Segment activation is in in progress”

Here, segment activation isn’t tied to multi-order; you’d receive the same error message even with a single place order.

This could pertain to the F&O or MCX segment, depending on where you’re placing the order.

Try placing an equity order; it should go through. Once your segment is activated, your current order payload will also be processed successfully.

Thank you.

the equity multi order works.

how would the payload change for option contracts , i want to place multiple buy or sell orders of strike prices/expiry. Does the multi-order work for this? My goal is to create a simple function for various option strategies. Is there any sample documentation that I can read?

Example given in the docs:
data = [
{
“correlation_id”: “1”,
“quantity”: 25,
“product”: “D”,
“validity”: “DAY”,
“price”: 0,
“tag”: “string”,
“instrument_token”: “NSE_FO|62864”,
“order_type”: “MARKET”,
“transaction_type”: “BUY”,
“disclosed_quantity”: 0,
“trigger_price”: 0,
“is_amo”: False,
“slice”: False
},
{
“correlation_id”: “2”,
“quantity”: 25,
“product”: “D”,
“validity”: “DAY”,
“price”: 0,
“tag”: “string”,
“instrument_token”: “NSE_FO|62867”,
“order_type”: “MARKET”,
“transaction_type”: “BUY”,
“disclosed_quantity”: 0,
“trigger_price”: 0,
“is_amo”: False,
“slice”: False
}
]

Hello @indusdev ,
The payload for option contracts is pretty similar to equity orders; the main difference is just the instrument key, while the other fields can stay the same.

You can also place multiple buy and sell orders for option contracts by setting transaction_type to either “BUY” or “SELL,” depending on what you need.

For more details, check out the Place Multi Order Documentation.

Thanks you

wouldn’t the payload structure change for the different expiry or strikes or if its a call option or put option?

what would be the instrument key for a nifty 50 CE expiry 14Nov?