Can trade in demo account, having trouble with live account


I am able to place orders using my demo account using Place order API with API Keys, but live account orders are failing for the place order API.

Do we can any constraints for live account like minimum balance on account ?

Could you please provide direction what all things we need to consider when placing live orders in Place order API.


Hello @venkata_raghavendra,

We do have minimum balance requirements, but to join the API Access program you already have met them. Take a look at what endpoint you’re using. If you didn’t change from to then requests will fail for live accounts.

HI Alexander,

Thanks for your reply, I have changed it to both and and also getting 200 response code from server.
But place order is failing with below error.

I have setup all API’s in POSTMAN REST client and validating with valid Baerer auth token.

“failureReason”: “UnknownReason”,
“failureText”: “Access is denied”

My request payload is same for both demo account and live account
“action”: “Buy”,
“symbol”: “MYMU1”,
“orderQty”: 1,
“orderType”: “Market”,
“accountSpec”: “myuser id”,
“accountId”: my account id,
“isAutomated”: true

Could anyone please confirm live orders are successful with the above place order API end point - and Json payload, do we need to add any more details for Live order compared to demo order payload

Demo account successful order:

Where you have "accountSpec": "my user id", do you use the integer userId value from the auth response or the or the string name value? You should use name for accountSpec.

I am using string name only, it’s accepting the request, but giving back with a response as access denied for live account. and same payload giving the order id in demo account.

Just to be sure:

Your Live Account and Demo Account will not have the same accountId

I am using same account ID, as when checked in other APIs , it’s returning the same account ID for both demo and live accounts. If it is different how to get the live account id.

If you’re getting access to the live API (meaning you’re using the live endpoint for /auth/accessTokenRequest and you get a 200 response with an accessToken field), you can just make a GET request to /account/list. This will return all of the accounts associated with your live user as an array. Each data object represents an Account and the id field is the real account entity ID.

Thanks for all your support, it’s working now,I am able to place live orders.


Good news, glad we could help!

1 Like