Api Documents

Public Api

Trading Pairs Api


Return all the trading pairs supported by bitesax.com


GET: https://bitesax.com/api/v1/pairs


Return data example:




  {

       "ticker_id": "BTC/ETH",

       "base": "BTC",

       "target": "ETH",

  }

Tickers Api

returns the tickers for all the supported trading pairs at once, cached in 20 seconds:


GET: https://bitesax.com/api/v1/tickers?ticker_id=ETH_BTC


Return data example:




   {

       "ticker_id": "BTC_ETH",

      "base_currency": "BTC",

      "target_currency": "ETH",

      "last_price":"0.033314",

      "base_volume":"0.06199566",

      "target_volume":"35.3193",

      "bid":"0.03331",

       "ask":"0.0352344",

      "high":”0.033414”,

       “low”:”0.03295"”,

 }

Orderbook Api

returns the tickers for all the supported trading pairs at once, cached in 200 seconds:


GET: https://bitesax.com/api/v1/orderbook?ticker_id=BTC_ETH


Return data example:




   {

       "ticker_id": "BTC_ETH",

      "timestamp":"1700050000",

       "bids":[,

      [,

       "49.8",

       "0.50000000"

      ],

      [

       "49.9",

       "6.40000000"

      ],

       "asks":[,

      [,

       "49.8",

       "0.50000000"

      ],

      [

       "49.9",

       "6.40000000"

      ],

 }

History Api

Return the most recent 200 trade history records:


GET: https://bitesax.com/api/v1/historical_trades?ticker_id=ETH_BTC&limit=200


Return data example:




   “buy”: [

   {

      "trade_id":1234567,

      "price":"50.1",

       "base_volume":"0.1",

      "target_volume":"1",

      "trade_timestamp":"1700050000",

       "type":"buy"

   }

    ],

   “Sell”: [

   {

       "trade_id":1234567,

       "price":"50.1",

       "base_volume":"0.1",

       "target_volume":"1",

      "trade_timestamp":"1700050000",

      "type":"sell"

   }

CandleApi

Return the most recent candle records:


GET: https://bitesax.com/api/v1/candles?market=ETH_BTC&time=M


to retrieve data by time:


Day=D Example: pairsC&time=D

Mount=M Example: pairsC&time=M

Year=Y Example: pairsC&time=Y

Return data example:




   {

      "timestamp":"1597590299000",

       "High":[,

      [,

       "0.033332",

      ],

       "Low":[,

      [,

       "0.033332",

      ],

       "Close":[,

      [,

       "0.033332",

      ],

       "Open":[,

      [,

       "0.033332",

      ],

       "Volume":[,

      [,

       "49.8",

      ],

 }

Private Api (Coming Soon)