List trading account balances
curl --request GET \
--url https://api.anchorage-staging.com/v2/trading/accounts/{accountId}/balances \
--header 'Api-Access-Key: <api-key>'import requests
url = "https://api.anchorage-staging.com/v2/trading/accounts/{accountId}/balances"
headers = {"Api-Access-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Api-Access-Key': '<api-key>'}};
fetch('https://api.anchorage-staging.com/v2/trading/accounts/{accountId}/balances', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"balance": {
"quantity": "250000.00",
"assetType": "USD",
"currentPrice": "1.00",
"currentUSDValue": "250000.00"
}
},
{
"balance": {
"quantity": "10000.00000000",
"assetType": "USDC",
"currentPrice": "1.00",
"currentUSDValue": "10000.00"
}
},
{
"balance": {
"quantity": "9.00000000",
"assetType": "BTC",
"currentPrice": "10000.00",
"currentUSDValue": "90000.00"
}
}
]
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}List trading account balances
Permissions required: Read trade activity
Get the trading account balances of fiat and digital assets
GET
/
trading
/
accounts
/
{accountId}
/
balances
List trading account balances
curl --request GET \
--url https://api.anchorage-staging.com/v2/trading/accounts/{accountId}/balances \
--header 'Api-Access-Key: <api-key>'import requests
url = "https://api.anchorage-staging.com/v2/trading/accounts/{accountId}/balances"
headers = {"Api-Access-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Api-Access-Key': '<api-key>'}};
fetch('https://api.anchorage-staging.com/v2/trading/accounts/{accountId}/balances', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"balance": {
"quantity": "250000.00",
"assetType": "USD",
"currentPrice": "1.00",
"currentUSDValue": "250000.00"
}
},
{
"balance": {
"quantity": "10000.00000000",
"assetType": "USDC",
"currentPrice": "1.00",
"currentUSDValue": "10000.00"
}
},
{
"balance": {
"quantity": "9.00000000",
"assetType": "BTC",
"currentPrice": "10000.00",
"currentUSDValue": "90000.00"
}
}
]
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}Was this page helpful?