Account

Account information (USER_DATA)

Get current account information.

Weight: 5

Code

await client.fetch_account_information(receive_window=None)

receive_window cannot be greater than 60000, it is not mandatory but can be used to specify the number of milliseconds the request is valid for.

Response

{
  "makerCommission": 15,
  "takerCommission": 15,
  "buyerCommission": 0,
  "sellerCommission": 0,
  "canTrade": true,
  "canWithdraw": true,
  "canDeposit": true,
  "updateTime": 123456789,
  "accountType": "SPOT",
  "balances": [
    {
      "asset": "BTC",
      "free": "4723846.89208129",
      "locked": "0.00000000"
    },
    {
      "asset": "LTC",
      "free": "4763368.68006011",
      "locked": "0.00000000"
    }
  ],
    "permissions": [
    "SPOT"
  ]
}

Account trade list (USER_DATA)

Get trades for a specific account and symbol.

Weight: 5

Code

await client.fetch_account_trade_list(
        symbol,
        start_time=None,
        end_time=None,
        from_id=None,
        limit=500,
        receive_window=None,
    )

symbol must be provided. start_time is not mandatory. end_time is not mandatory. from_id is the tradeId to fetch from. Default gets most recent trades. limit should be inferior to 1000. receive_window cannot be greater than 60000, it is not mandatory but can be used to specify the number of milliseconds the request is valid for.

Response

[
  {
    "symbol": "BNBBTC",
    "id": 28457,
    "orderId": 100234,
    "orderListId": -1,
    "price": "4.00000100",
    "qty": "12.00000000",
    "quoteQty": "48.000012",
    "commission": "10.10000000",
    "commissionAsset": "BNB",
    "time": 1499865549590,
    "isBuyer": true,
    "isMaker": false,
    "isBestMatch": true
  }
]

Last updated