Get the combined balance across all accounts.
GET
/api/dashboard/totals
const url = 'https://api.tradr.cloud/api/dashboard/totals';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.tradr.cloud/api/dashboard/totalsAuthed. Sums every account balance into the user’s display currency. missingPairs is present only when at least one account could not be converted for want of a rate — its absence is the “total is complete” signal, so check for the key rather than an empty array. When it is present the total covers only the accounts that could be converted.
Responses
Section titled “Responses”The combined total.
Media typeapplication/json
object
displayCurrency
string
missingPairs
Omitted entirely when every account converted.
Array<object>
object
total
string
Examplegenerated
{ "displayCurrency": "example", "missingPairs": [ {} ], "total": "example"}