Skip to main content

Balances

Endpoint

GET /balances

Request

None

Headers

HeaderTypeRequiredDescription
session-tokenstringYesAuthorization token.
api-keystringYesAPI key for user authentication.

Note: You must provide either session-token or api-key in the headers for authentication.

Response

JSON Array of Objects


Response Fields

FieldTypeDescription
ustringUser ID.
cstringCurrency name (e.g., ETH, USDT).
tstringTotal balance.
astringAvailable balance.
lstringLast updated timestamp (in milliseconds).

Example Usage

curl --location 'https://spot-markets.goonus.io/balances' \
--header 'session-token: xxx'

Response Example

[
{
"u": "1",
"c": "ETH",
"t": "99.20000000",
"a": "99.03000000",
"l": "1720747770838"
},
{
"u": "1",
"c": "USDT",
"t": "100.30000000",
"a": "100.16000000",
"l": "1720747725318"
}
]