Get Asset Balance
curl --request GET \
--url https://app.digitalsurge.com.au/api/private/balances/{asset}/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.digitalsurge.com.au/api/private/balances/{asset}/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.digitalsurge.com.au/api/private/balances/{asset}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"total": "<string>"
}Private
Get Asset Balance
Return the total balance for a single asset.
GET
/
api
/
private
/
balances
/
{asset}
/
Get Asset Balance
curl --request GET \
--url https://app.digitalsurge.com.au/api/private/balances/{asset}/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.digitalsurge.com.au/api/private/balances/{asset}/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.digitalsurge.com.au/api/private/balances/{asset}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"total": "<string>"
}Authorizations
Personal API key, created in the Digital Surge app under Account Settings → API Keys. Send it with every request as Authorization: Bearer <your-api-key>.
Path Parameters
Pattern:
^\w{1,10}$Response
200 - application/json