API function to fetch details of all trading accounts available under the user.
This API is primarily designed for application developers who are going to create customized trading applications using our broker independent trading APIs.
Note: This api does not provide sensitive details like password, security answer etc.
Example
curl https://apix.stocksdeveloper.in/account/fetchAllTradingAccounts \
-H "api-key: <your_api_key>"
Response [Success]
{
"result": [
{
"loginId": "229004",
"pseudoAccName": "UPSTOX-NM",
"broker": "Upstox",
"platform": "UPSTOX_API",
"licenseExpiryDate": "20-Sep-2023",
"live": false,
"systemId": 20739003,
"systemIdOfPseudoAcc": 20739004,
"licenseDaysLeft": 0
},
{
"loginId": "AR291",
"pseudoAccName": "ARPITA-SAS",
"broker": "SAS",
"platform": "SAS",
"licenseExpiryDate": "24-Jun-2023",
"live": false,
"systemId": 16638672,
"systemIdOfPseudoAcc": 16638673,
"licenseDaysLeft": 0
}
],
"message": null,
"status": true,
"commandId": null
}
Response [Failure]
{
"result": null,
"message": "429 - Too many requests",
"status": false,
"commandId": null
}
Response Fields
- loginId – Login id of trading account
- pseudoAccName – Pseudo name (nick name)
- broker – Stock broker name
- platform – Stock broker platform
- live – Indicates whether an account is live or not (non-live accounts are not available for trading) [Boolean]
- licenseExpiryDate – License expiry date (dd-MMM-yyyy) format
- licenseDaysLeft – License days left [Number]
- systemId – System id of trading account (internal id given by AutoTrader Web which uniquely identifies a trading account) [Number]
- systemIdOfPseudoAcc – System id of pseudo account (internal id given by AutoTrader Web which uniquely identifies a pseudo account) [Number]
API Limits
This api is not expected to be used repeatedly, hence it has stricter API Limits compared to the other apis.
- Max 10 requests are allowed in 1 min
- Max 100 requests are allowed in 1 hour