Trading
Get trading account credit limit and usage
Permissions required: Read trade activity
Get the credit limit and usage of a trading account per asset. Current USD prices are not returned, only assets and their quantity.
Still under development, return empty replies.
get/trading/accounts/{accountId}/credit
Request
- Base URLhttps://api.anchorage-staging.com/v2
- AuthAPI key in header Api-Access-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
accountIdstring required
The ID of the trading account to get the credit for
Response
Successfully returned the credit of the trading account
Example response
{
"data": {
"limits": [
{
"quantity": "10.45234733",
"assetType": "BTC",
"currentPrice": "9751.01",
"currentUSDValue": "101920.94"
}
],
"usage": [
{
"quantity": "10.45234733",
"assetType": "BTC",
"currentPrice": "9751.01",
"currentUSDValue": "101920.94"
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.