General

Check your connectivity and get informations from the exchange

Test connectivity

Test connectivity to the Rest API.

Code

await client.ping()

Response

{}

Check server time

Test connectivity to the Rest API and get the current server time.

Code

await client.fetch_server_time()

Response

{
  "serverTime": 1499827319559
}

Exchange information

Current exchange trading rules and symbol information.

Code

await client.fetch_exchange_info()

Response

{
  "timezone": "UTC",
  "serverTime": 1565246363776,
  "rateLimits": [
    {
      //These are defined in todo
      //All limits are optional
    }
  ],
  "exchangeFilters": [
        //These are the defined filters
     ],
  "symbols": [
    {
      "symbol": "ETHBTC",
      "status": "TRADING",
      "baseAsset": "ETH",
      "baseAssetPrecision": 8,
      "quoteAsset": "BTC",
      "quotePrecision": 8,
      "baseCommissionPrecision": 8,
      "quoteCommissionPrecision": 8,
      "orderTypes": [
        "LIMIT",
        "LIMIT_MAKER",
        "MARKET",
        "STOP_LOSS",
        "STOP_LOSS_LIMIT",
        "TAKE_PROFIT",
        "TAKE_PROFIT_LIMIT"
      ],
      "icebergAllowed": true,
      "ocoAllowed": true,
      "quoteOrderQtyMarketAllowed": true,
      "isSpotTradingAllowed": true,
      "isMarginTradingAllowed": true,
      "filters": [
        //These are defined in the Filters section.
        //All filters are optional
      ],
      "permissions": [
        "SPOT",
        "MARGIN"
      ]
    }
  ]
}

Last updated