Skip to content

REST API V2

Bitker-API edited this page Jun 26, 2019 · 7 revisions

General API Information

Version: 2.0.0
Base URL: https://third.bitker.com/api/v2

Release Notes:

  • Added timestamp property in Market Depth API.
  • Added id property for trade element in Trades API.

For descriptions of the V1 API, see V1 API Reference.

Public API Endpoints

Market Depth

Retrieves the current order book of a specific pair.

GET  /depth  

Parameters:

Name Type Mandatory Description
symbol STRING YES Trade pair symbol.
Ex. btc_usdt/eth_usdt ....

Example:

Request  https://third.bitker.com/api/v2/depth?symbol=btc_usdt

Response

{

"timestamp":1561544735758,

"asks": [

[9132.6455, 0.0637, 2.0929], //[price,quantity, merged quantity]

[9131.6456, 0.1308, 2.0292],

[9130.6455, 0.0295, 1.8984],

[9130, 0.0004, 1.8689],

......,

[9113.6608, 0.0706, 0.0706]

],

"bids": [

[9103.799, 0.6685, 0.6685],

[9102.7995, 0.1539, 0.8224],

[9101.0392, 0.4969, 1.3193],

......,

[9082.5866, 0.1783, 3.3442]

]

}

24hr ticker price change statistics

24 hour rolling window price change statistics

GET  /tickers

Example:

Request  https://third.bitker.com/api/v2/tickers

Response

{

"timestamp": 1560936826,

"ticker": [{

"symbol": "ETH_BTC",

"last": 0.02930503,

"buy": 0.02926499,

"sell": 0.03237257,

"high": 0.03340597,

"low": 0.02800001,

"vol": 144384.990725,

"change": "0.34%"

},

......,

{

"symbol": "BKB_USDT",

"last": 0.130302,

"buy": 0.1301,

"sell": 0.131309,

"high": 0.137386,

"low": 0.130297,

"vol": 233655.54,

"change": "-4.44%"

}

]

}

Recent trades list

Get recent trades (up to last 50).

GET  /trades

Parameters:

Name Type Mandatory Description
symbol STRING YES Trade pair symbol.
Ex. btc_usdt/eth_usdt ....

Example:

Request https://third.bitker.com/api/v2/trades?symbol=btc_usdt

Response

[

{

"id":35403468062704640,

"timestamp":1560936506071,

"price":9141.9529,

"amount":4.1918,

"side":"sell"

},{

"id":35403459695068160,

"timestamp":1560936502045,

"price":9141.5484,

"amount":0.48,

"side":"buy"

},

......,

 {

"id":35403451286537216,

"timestamp":1560936292123,

"price":9140.5253,

"amount":0.0631,

"side":"buy"

}

]

Basic Exchange Metadata

Retrieves the basic exchange metadata.

GET  /exchangeinfo

Example:

Request https://third.bitker.com/api/v2/exchangeinfo

Response

[

{

"symbol": "ETC_ETH",

"status": "trading",

"baseAsset": "ETC",

"baseAssetPrecision": 6,

"quoteAsset": "ETH",

"quoteAssetPrecision": 8

}, {

"symbol": "ETH_BTC",

"status": "trading",

"baseAsset": "ETH",

"baseAssetPrecision": 8,

"quoteAsset": "BTC",

"quoteAssetPrecision": 8

},

......,

{

"symbol": "BKB_USDT",

"status": "trading",

"baseAsset": "BKB",

"baseAssetPrecision": 6,

"quoteAsset": "USDT",

"quoteAssetPrecision": 8

}

]

Clone this wiki locally