Get Portfolio Stats
curl --request GET \
--url https://app.digitalsurge.com.au/api/private/v2/wallet-stats/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.digitalsurge.com.au/api/private/v2/wallet-stats/"
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/v2/wallet-stats/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"count": 123,
"results": [
{
"overall": {
"overall_aud_wallet_value": "<string>",
"overall_day_return": "<string>",
"overall_day_return_percentage": "<string>",
"overall_total_return": "<string>",
"overall_total_return_percentage": "<string>"
},
"assets": [
{
"asset": "<string>",
"approximate_value": "<string>",
"current_balance": "<string>",
"current_buy_price": "<string>",
"current_sell_price": "<string>",
"last_buy_price": "<string>",
"last_sell_price": "<string>",
"day_buy_return": "<string>",
"day_buy_return_percentage": "<string>",
"total_avg_buy": "<string>",
"total_avg_sell": "<string>",
"total_buy_return": "<string>",
"total_buy_return_percentage": "<string>",
"stale_price": true
}
]
}
],
"next": "http://api.example.org/accounts/?page=4",
"previous": "http://api.example.org/accounts/?page=2"
}Private
Get Portfolio Stats
Crypto-only wallet statistics for the authenticated customer. Returns per-asset values, day/total returns, and (with ?overall=true) an aggregate AUD value of all crypto holdings. This endpoint does NOT include the customer’s AUD cash balance — to report a total portfolio value (crypto + AUD), also call the balances endpoint and add the AUD entry.
GET
/
api
/
private
/
v2
/
wallet-stats
/
Get Portfolio Stats
curl --request GET \
--url https://app.digitalsurge.com.au/api/private/v2/wallet-stats/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.digitalsurge.com.au/api/private/v2/wallet-stats/"
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/v2/wallet-stats/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"count": 123,
"results": [
{
"overall": {
"overall_aud_wallet_value": "<string>",
"overall_day_return": "<string>",
"overall_day_return_percentage": "<string>",
"overall_total_return": "<string>",
"overall_total_return_percentage": "<string>"
},
"assets": [
{
"asset": "<string>",
"approximate_value": "<string>",
"current_balance": "<string>",
"current_buy_price": "<string>",
"current_sell_price": "<string>",
"last_buy_price": "<string>",
"last_sell_price": "<string>",
"day_buy_return": "<string>",
"day_buy_return_percentage": "<string>",
"total_avg_buy": "<string>",
"total_avg_sell": "<string>",
"total_buy_return": "<string>",
"total_buy_return_percentage": "<string>",
"stale_price": true
}
]
}
],
"next": "http://api.example.org/accounts/?page=4",
"previous": "http://api.example.org/accounts/?page=2"
}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>.
Query Parameters
Filter to specific asset code
Include overall portfolio statistics
A page number within the paginated result set.
Number of results to return per page.