Exchangily-api

This API includes a number of different features, including the exchange data for exchangily, as well as blockchain data for the Kanban blockchain

Spot Exchange Data Endpoints


Summary API

Overview of market data for all tickers and all markets.

  • URL

    /publicapi/summary

  • Method:

    GET

  • URL Params

    Required:

    None

  • Data Params

    None

  • Success Response:

    • Code: 200
      Content: { success: true, data: [{ "pair": "ETH_USDT","baseCurrency": "ETH","quoteCurrency": "USDT","last": "239.05","lowest_ask": "240.01","highest_bid": "238.72","base_volume": "140.21355","quote_volume": "33655.332","percent_change_24h": "-0.13","high": "243.15","low": "235.38" }, ...] , message: null }
  • Error Response:

    • Code: 500 SERVER ERROR
      Content: { success: true, data: null , message: 'error: could not retrieve summary data' }

Ticker API

24-hour rolling window price change statistics for all markets.

  • URL

    /publicapi/ticker

  • Method:

    GET

  • URL Params

    Required:

    None

  • Data Params

    None

  • Success Response:

    • Code: 200
      Content: { "success": true, "data": { "ETH_USDT": { "last": "139.98","base_volume": "140.21355","quote_volume": "33655.332 }, "ETH_BTC": { "last": "0.020799","base_volume": "400.243","quote_volume": "10.0605 }, .. }, "message": null }
  • Error Response:

    • Code: 500 SERVER ERROR
      Content: { success: true, data: null , message: 'error: could not retrieve ticker data' }

Orderbook API

Market depth of a trading pair. One array containing a list of ask prices and another array containing bid prices.

  • URL

    /publicapi/orderbook/:marketPair/:depth?

  • Method:

    GET

  • URL Params

    Required:

    string marketPair: '<basecurrency>_<quotecurrency>'

    e.g. 'ETH_USDT'

    Optional:

    number depth: <combined total depth - bids and asks will both be limited to depth/2>

    e.g. '4' will return 2 bids and 2 asks if they exist

    default: '0' - returns full depth of order book

  • Data Params

    None

  • Success Response:

    • Code: 200
      Content: { "success": true, "data": { "timestamp": 1593930416, "bids": [["140","0.983476544967673806"],["139.25","0.993662014942688081"]], "asks": [["140.02","0.000376122891084008"], ["140.07","0.000316767448010911"] }, "message": null }
  • Error Response:

    • Code: 500 SERVER ERROR
      Content: { success: true, data: null , message: 'error: could not retrieve order book data' }

Trades API

Recently completed trades for a given market.

  • URL

    /publicapi/trades/:marketPair

  • Method:

    GET

  • URL Params

    Required:

    string marketPair: '<basecurrency>_<quotecurrency>'

    e.g. 'ETH_USDT'

  • Data Params

    None

  • Success Response:

    • Code: 200
      Content: { "success": true, "data": [{ "tradeId": 180, "price": "0.020799", "time": 1586818157, "baseVolume": "0.000273746650646437", "type": "buy"}, {"tradeId": 179, "price": "0.020798", "time": 1586818157, "baseVolume": "0.00027325093596502", "type": "buy"}, {"tradeId": 178, "price": "0.020798", "time": 1585950236, "baseVolume": "0.000307954300218847", "type": "buy"}, {"tradeId": 177, "price": "0.020797", "time": 1585950236, "baseVolume": "0.000222248878666554", "type": "buy"}}], "message": null}
  • Error Response:

    • Code: 500 SERVER ERROR
      Content: { success: true, data: null , message: 'error: could not retrieve order book data' }

Explorer Endpoints

Latest Blocks

GET /kanban/explorer/getlatestblocks/:count

Returns a total of count(upto 10) latest blocks.


Single Block

GET /kanban/explorer/getblock/:number

Returns a single block by number.


Multiple Blocks

GET /kanban/explorer/getblocks/:number/:count

Returns a total of count (upto 10) blocks preceding from number-th block.


Balance

GET /kanban/explorer/getbalance/:address

Returns balance of the given address.


Nonce

GET /kanban/explorer/getnonce/:address/:status

Returns nonce of the given address.
Status should be pending to include pending transactions.


Transaction

GET /kanban/explorer/gettransaction/:txhash

Returns a full transaction for a given txhash


Transaction Status

GET /kanban/explorer/gettransactionstatus/:txhash

Returns status of the transaction for a given txhash


Latest Transactions

GET /kanban/explorer/transactions/:idx/:count

Returns a total of count transactions preceding idx.

GET /kanban/explorer/transactions/:count

Returns a total of count latest transactions.


Transactions To Address

GET /kanban/explorer/getaddresstxsto/:address

Returns all the transaction IDs for which the given address has received any amount.


Transactions From Address

GET /kanban/explorer/getaddresstxsfrom/:address

Returns all the transaction IDs for which the given address has sent any amount.


All Transactions For An Address

GET /kanban/explorer/getaddresstxsall/:address

Returns all the transaction IDs for which the given address has sent or received any amount.


Transaction Confirmations

GET /kanban/explorer/getconfirmationcount/:txhash

Returns confirmations for the given txhash.


Token List

GET /kanban/explorer/tokenlist

Return a list of all the available Tokens on Kanban.