Skip to content

2.4 Balance Query

http
GET /api/v1/user/exchange/wallets/{external_player_id}/balance?currency={CNY|USD}

URL Parameters

FieldRequiredTypeDescription
external_player_idTRUEstringPath parameter, player ID
currencyTRUEstringQuery parameter, must match the currency bound to the agent; see the supported currency list

TIP

Signing note — GET requests have no body. When signing, KeyA is always "{}", and X-Body-Hash is always:

text
44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a

(i.e. sha256("{}"))

Response data

json
{
  "code": 0,
  "message": "success",
  "data": {
    "wallet": {
      "currency": "CNY",
      "balance": "0"
    }
  }
}

BFX EXCHANGE · BE THE GAME CHANGER