Receiving status code 503 while placing orders using multi-order api

Hey, placing multi-order using a single endpoint looked like a very handy feature but whenever used, getting an error with status code 503.

This is the json body I’m sending :

[{‘symbol’: ‘NSE:ASHOKLEY-EQ’, ‘qty’: 1, ‘type’: 1, ‘side’: 1, ‘productType’: ‘INTRADAY’, ‘limitPrice’: 174, ‘stopPrice’: 0, ‘disclosedQty’: 0, ‘validity’: ‘DAY’, ‘offlineOrder’: False, ‘stopLoss’: 0, ‘takeProfit’: 0}, {‘symbol’: ‘NSE:RELIANCE-EQ’, ‘qty’: 1, ‘type’: 1, ‘side’: 1, ‘productType’: ‘INTRADAY’, ‘limitPrice’: 2390, ‘stopPrice’: 0, ‘disclosedQty’: 0, ‘validity’: ‘DAY’, ‘offlineOrder’: False, ‘stopLoss’: 0, ‘takeProfit’: 0}]

And this is the response :

{‘status’: False,

‘data’: ,

‘error’: True,

‘statuscode’: 503,

‘message’: ‘Data not received.’}

Hi @nirajmunot28-kuo

Kindly tell me which api version you are using
V2 or V3?

I’m using v3

But I also tested it with v2, getting same issue..

hi @nirajmunot28-kuo

I also tried , it is working
Can you share your code so that I can check where it is wrong

I tried for this parameter
data = [
{
“symbol”:“NSE:IDEA-EQ”,
“qty”:1,
“type”:2,
“side”:1,
“productType”:“INTRADAY”,
“limitPrice”:8,
“stopPrice”:0,
“validity”:“DAY”,
“disclosedQty”:0,
“offlineOrder”:False,
},{
“symbol”:“NSE:SBIN-EQ”,
“qty”:1,
“type”:2,
“side”:1,
“productType”:“INTRADAY”,
“limitPrice”:0,
“stopPrice”:0,
“validity”:“DAY”,
“disclosedQty”:0,
“offlineOrder”:False,
}
]

As you see in attached order is placed

Show me your code, so that I can help you

Thank you, I tested it again it v2, It is working.

Although still have issue with v3

Here is my code :

import requestsBASE_URL = "https://api-t1.fyers.in/api/v3"endpoint = "/orders-multi/sync"url = BASE_URL + endpoint body = [{‘symbol’: ‘NSE:ASHOKLEY-EQ’, ‘qty’: 1, ‘type’: 1, ‘side’: 1, ‘productType’: ‘INTRADAY’, ‘limitPrice’: 174, ‘stopPrice’: 0, ‘disclosedQty’: 0, ‘validity’: ‘DAY’, ‘offlineOrder’: False, ‘stopLoss’: 0, ‘takeProfit’: 0}, {‘symbol’: ‘NSE:RELIANCE-EQ’, ‘qty’: 1, ‘type’: 1, ‘side’: 1, ‘productType’: ‘INTRADAY’, ‘limitPrice’: 2390, ‘stopPrice’: 0, ‘disclosedQty’: 0, ‘validity’: ‘DAY’, ‘offlineOrder’: False, ‘stopLoss’: 0, ‘takeProfit’: 0}]header = {‘Accept’: ‘/’, ‘Accept-Encoding’: ‘gzip, deflate, br’, ‘Connection’: ‘keep-alive’, ‘Authorization’: “Access Token”}reqsession = requests.Session()resp = reqsession.request(“POST”, url, json = body, timeout = timeout, headers = header)

I’m now getting response as :

{‘status’: False, ‘data’: , ‘error’: True, ‘statuscode’: 404, ‘message’: ‘Data not received.’}

**Hi **@nirajmunot28-kuo

Instead of endpoint = “/orders-multi/sync”
**use **

"/multi-order/sync"

and let me know if this don’t work

And please update me if it works as well
Thank you

Thank you, It works!