Balances and Positions

Retrieves the current account balances and positions

Request

{
  "id": "account.current-1",
  "method": "account.current",
  "params": [
    "eyJhcGlLZXkiOiJnbG9iYWxfYjg4NWY1Njc2MDA5ZWMzYzBkNTE5MDAyNmJhZGRiNmYiLCJzaWduIjoiN1ovRXBJT0lrOTJsUmZiMzJOcy8wdmV6K1dXNHQ4V3BsSzlTTXJGbnRMYz0iLCJwYXNzcGhyYXNlIjoiRXJpYy5aaGFuZzIwMjUiLCJ0aW1lc3RhbXAiOjE3Nzg2NzgyMTg0NzR9"
  ]
}

Response

The data content follows the same structure as Balances and Positions [Incremental Update].

{
  "id": "account.current-1",
  "method": "account.current",
  "eventType": "account",
  "action": "snapshot",
  "eventTime": 1778813674874,
  "data": [
    {
      "balances": [
        {
          "sequenceNum": 4728402734,
          "version": 450,
          "asset": "USDC",
          "total": "33.09",
          "locked": "0",
          "freeze": null,
          "avail": "33.09",
          "change": "0",
          "crossDiscountRate": "1"
        },
        {
          "sequenceNum": 0,
          "version": 0,
          "asset": "USDT",
          "total": "0",
          "locked": "0",
          "freeze": null,
          "avail": "0",
          "change": "0",
          "crossDiscountRate": "0.99"
        },
        {
          "sequenceNum": 4680761518,
          "version": 11,
          "asset": "USD",
          "total": "10",
          "locked": "0",
          "freeze": null,
          "avail": "10",
          "change": "0",
          "crossDiscountRate": "1"
        }
      ],
      "positions": [
        {
          "sequenceNum": 4728402734,
          "symbolId": "BTCUSDC",
          "baseToken": "BTC",
          "quoteToken": "USDC",
          "settleToken": "USDC",
          "op": 1,
          "quantity": "-0.0003",
          "avgEntryPrice": "75455.9",
          "curTermRealisedPnl": "0.1",
          "marginType": "CROSSED",
          "isolatedMargin": "0",
          "positionSide": "BOTH",
          "isolated": false,
          "direction": "SHORT",
          "totalFee": "-0.01131838",
          "fundingFee": "0.13177991",
          "updateTime": 1776745692929,
          "riskRank": "1",
          "closeProfit": "0"
        }
      ]
    }
  ],
  "error": {
    "code": -1,
    "message": "{\"balances\":\"OK\";\"positions\":\"OK\"}"
  }
}