Skip to content
UNHEDGED / DOCS

Search documentation

Browse docs or start typing to find a topic

↑ ↓ to navigate Enter to open Esc to close

Documentation

Back to app

Get Balance

GET https://api.unhedged.gg/api/v1/balance

Returns available, locked, deposited, withdrawn, and total USD amounts, read from the database on every request (Cache-Control: no-store). withdrawalFee and bettingFee are also in USD. Held Canton Coin is reported separately in ccAvailable and ccLocked (CC units); ccPriceUsd is the USD price of one CC.

Configure request

Request

Security · Bearer token

Send your API key in the Authorization header. Required scope balance:read.

Rate limit · 60 req/min

Authorization
Bearer token Authorization: Bearer ak_your_key_here
curl https://api.unhedged.gg/api/v1/balance \
  -H "Authorization: Bearer ak_your_key_here"
Response
{
  "balance": {
    "available": "500.0000000000",
    "lockedWithdraws": "0.0000000000",
    "lockedBets": "150.0000000000",
    "lockedEngine": "0.0000000000",
    "total": "650.0000000000",
    "totalDeposited": "1000.0000000000",
    "totalWithdrawn": "200.0000000000",
    "ccAvailable": "25.0000000000",
    "ccLocked": "0.0000000000"
  },