Skip to main content

Balances

Two levels of detail:

  • All assets on the selected account — GET /balances;
  • One asset — GET /balance/{asset}.

All assets on an account (user, x-uid)​

If account is omitted, the default account for the profile is used.

GET https://api.cobrex.com/balances?account=a-9bb4cd8e-8879-477e-933a-1e5e8b218bd7

Headers​

HeaderValue
x-uidUser ID
x-timestampSeconds
x-signatureHMAC for full_URL\ntimestamp (no body)

Sample response​

{
"USDT": "1083530.173677641529258117",
"TRX": "992021.628360113000000000",
"USD": "0.000000000000000000",
"RUB": "0.000000000000000000",
"BTC": "0.435603704990000000",
"LTC": "319.820302446910000000",
"ETH": "23.542343766434554606",
"DOGE": "50390.235547610480000000",
"USDC": "4871.024994072630000000",
"BNB": "4.454887432542300579",
"TON": "48620.208383471331000000",
"SOL": "133.832716930910000000",
"XMR": "4.391850438178135000"
}

Keys are asset tickers; values are decimal strings (fixed precision from the API).


All assets for a merchant (x-mid)​

Balance for the account linked to the merchant.

GET https://api.cobrex.com/balances

Headers​

HeaderValue
x-midMerchant ID
x-timestampSeconds
x-signatureHMAC for URL\ntimestamp

Same response shape: ticker → balance string.


Single asset balance (user)​

GET https://api.cobrex.com/balance/USDT?account=a-9bb4cd8e-8879-477e-933a-1e5e8b218bd7

Without account, the default account applies.

Sample response​

{
"balance": "1082922.502057541529258117"
}

Single asset balance (merchant)​

GET https://api.cobrex.com/balance/USDT

With x-mid — balance for that asset on the merchant-linked account.

Headers​

Same triple: x-mid, x-timestamp, x-signature; signing without body.