-
Notifications
You must be signed in to change notification settings - Fork 3
Rest api
The base endpoint is: https://third.bitker.com
GET /api/v1/depth
Parameters:
| Name | Type | Mandatory | Description |
| symbol | STRING |YES | btc_usdt/eth_usdt .... |
example
Request https://third.bitker.com/api/v1/depth?symbol=btc_usdt
Response
{
"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],
[9129.6454, 0.1548, 1.8685],
[9128.6456, 0.1376, 1.7137],
[9127.6456, 0.1069, 1.5761],
[9126.6452, 0.1401, 1.4692],
[9125.6454, 0.1196, 1.3291],
[9124.6972, 0.1033, 1.2095],
[9123.5753, 0.1937, 1.1062],
[9122.6971, 0.074, 0.9125],
[9121.8593, 0.1911, 0.8385],
[9120.3008, 0.1834, 0.6474],
[9119.3005, 0.1876, 0.464],
[9118.3009, 0.0026, 0.2764],
[9116.8006, 0.0342, 0.2738],
[9115.8008, 0.0409, 0.2396],
[9114.8003, 0.1281, 0.1987],
[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],
[9099.6959, 0.1894, 1.5087],
[9098.219, 0.0887, 1.5974],
[9097.219, 0.0289, 1.6263],
[9096.2065, 0.1069, 1.7332],
[9095.2068, 0.1311, 1.8643],
[9094.2066, 0.1733, 2.0376],
[9093.2069, 0.1264, 2.164],
[9092.2069, 0.1129, 2.2769],
[9090.9689, 0.1687, 2.4456],
[9089.969, 0.0095, 2.4551],
[9088.9691, 0.1551, 2.6102],
[9087.9694, 0.1669, 2.7771],
[9086.5738, 0.1743, 2.9514],
[9085.5738, 0.1001, 3.0515],
[9084.5739, 0.0575, 3.109],
[9083.5864, 0.0569, 3.1659],
[9082.5866, 0.1783, 3.3442]
]
}
24 hour rolling window price change statistics
GET /api/v1/tickers
example:
Request https://third.bitker.com/api/v1/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": "ETH_USDT",
"last": 268.4063,
"buy": 267.2223,
"sell": 267.7867,
"high": 271.1795,
"low": 259.9616,
"vol": 432720.882118,
"change": "-0.07%"
},{
"symbol": "LTC_BTC",
"last": 0.015009,
"buy": 0.014502,
"sell": 0.015512,
"high": 0.015304,
"low": 0.014232,
"vol": 353701.002,
"change": "5.03%"
},{
"symbol": "XRP_BTC",
"last": 4.744e-5,
"buy": 4.5e-5,
"sell": 5.499e-5,
"high": 4.809e-5,
"low": 4.664e-5,
"vol": 80215247.4,
"change": "-0.94%"
},{
"symbol": "BTC_USDT",
"last": 9121.3261,
"buy": 9121.3261,
"sell": 9128.1141,
"high": 9245.7584,
"low": 8806.3847,
"vol": 24443.0222,
"change": "-0.96%"
},{
"symbol": "LTC_USDT",
"last": 137.1504,
"buy": 136.6,
"sell": 137.1924,
"high": 139.7126,
"low": 118.2388,
"vol": 392701.416864,
"change": "4.51%"
},{
"symbol": "XRP_USDT",
"last": 0.4231,
"buy": 0.4271,
"sell": 0.4393,
"high": 0.4684,
"low": 0.3858,
"vol": 78855139.51,
"change": "-2.8%"
},{
"symbol": "BKB_USDT",
"last": 0.130302,
"buy": 0.1301,
"sell": 0.131309,
"high": 0.137386,
"low": 0.130297,
"vol": 233655.54,
"change": "-4.44%"
}
]
}
GET /api/v1/trades
Get recent trades (up to last 50). Parameters:
| Name | Type | Mandatory | Description |
| symbol | STRING |YES | btc_usdt/eth_usdt .... |
Response:
[
{
"price": "9150",
"amount": "0.045",
"timestamp": 1560935838983,
"side": "buy":
}
]
example:
Request https://third.bitker.com/api/v1/trades?symbol=btc_usdt
Response
[
{"timestamp":1560936506071,"price":9141.9529,"amount":4.1918,"side":"sell"},
{"timestamp":1560936502045,"price":9141.5484,"amount":0.48,"side":"buy"},
{"timestamp":1560936500104,"price":9150.2897,"amount":0.478,"side":"buy"},
{"timestamp":1560936498092,"price":9150.2897,"amount":4.1921,"side":"sell"},
{"timestamp":1560936496421,"price":9150.2897,"amount":0.0037,"side":"sell"},
{"timestamp":1560936496085,"price":9150.2897,"amount":0.0065,"side":"buy"},
{"timestamp":1560936493619,"price":9151.9633,"amount":0.0052,"side":"sell"},
{"timestamp":1560936483800,"price":9141.5492,"amount":0.4624,"side":"buy"},
{"timestamp":1560936482275,"price":9150.9639,"amount":0.4617,"side":"buy"},
{"timestamp":1560936479801,"price":9149.8879,"amount":0.4704,"side":"buy"},
{"timestamp":1560936475615,"price":9140,"amount":0.0049,"side":"buy"},
{"timestamp":1560936473762,"price":9150.9633,"amount":4.1917,"side":"sell"},
{"timestamp":1560936470547,"price":9149.9807,"amount":4.1901,"side":"buy"},
{"timestamp":1560936466162,"price":9141.9797,"amount":0.1822,"side":"buy"},
{"timestamp":1560936465952,"price":9141.9797,"amount":0.1833,"side":"buy"},
{"timestamp":1560936465810,"price":9149.9807,"amount":0.1827,"side":"buy"},
{"timestamp":1560936463559,"price":9141.1271,"amount":0.1834,"side":"sell"},
{"timestamp":1560936452123,"price":9141.1271,"amount":0.1454,"side":"sell"},
{"timestamp":1560936447497,"price":9140.853,"amount":0.4158,"side":"buy"},
{"timestamp":1560936442796,"price":9149.8213,"amount":0.0547,"side":"sell"},
{"timestamp":1560936442157,"price":9140.853,"amount":0.0015,"side":"sell"},
{"timestamp":1560936440962,"price":9140,"amount":0.0009,"side":"sell"},
{"timestamp":1560936438818,"price":9148.8545,"amount":0.4499,"side":"sell"},
{"timestamp":1560936434581,"price":9140.8538,"amount":0.4536,"side":"sell"},
{"timestamp":1560936421970,"price":9140.8538,"amount":5.2896,"side":"sell"},
{"timestamp":1560936419314,"price":9140.8538,"amount":0.0004,"side":"buy"},
{"timestamp":1560936419161,"price":9140,"amount":0.004,"side":"sell"},
{"timestamp":1560936415785,"price":9140.9757,"amount":0.553,"side":"sell"},
{"timestamp":1560936411251,"price":9149.4411,"amount":0.5548,"side":"buy"},
{"timestamp":1560936405872,"price":9140.9757,"amount":0.5569,"side":"buy"},
{"timestamp":1560936392940,"price":9140.0887,"amount":0.0297,"side":"sell"},
{"timestamp":1560936388932,"price":9149.441,"amount":0.0313,"side":"buy"},
{"timestamp":1560936385451,"price":9149.4401,"amount":0.1124,"side":"sell"},
{"timestamp":1560936380933,"price":9149.4401,"amount":0.114,"side":"sell"},
{"timestamp":1560936378899,"price":9147.6,"amount":0.5979,"side":"buy"},
{"timestamp":1560936374378,"price":9144.8,"amount":0.0037,"side":"buy"},
{"timestamp":1560936371981,"price":9143.5,"amount":0.1269,"side":"sell"},
{"timestamp":1560936363935,"price":9143.3,"amount":0.5344,"side":"buy"},
{"timestamp":1560936358890,"price":9145.3,"amount":0.6378,"side":"sell"},
{"timestamp":1560936356898,"price":9142.7,"amount":0.6418,"side":"sell"},
{"timestamp":1560936353334,"price":9142,"amount":0.0079,"side":"buy"},
{"timestamp":1560936351235,"price":9144.2,"amount":0.6667,"side":"buy"},
{"timestamp":1560936347984,"price":9144.2,"amount":0.6669,"side":"buy"},
{"timestamp":1560936342509,"price":9145,"amount":0.6637,"side":"sell"},
{"timestamp":1560936333053,"price":9144.6,"amount":0.0094,"side":"sell"},
{"timestamp":1560936331340,"price":9145.2,"amount":0.178,"side":"sell"},
{"timestamp":1560936302050,"price":9148.7635,"amount":0.5017,"side":"sell"},
{"timestamp":1560936296947,"price":9140,"amount":0.001,"side":"buy"},
{"timestamp":1560936294294,"price":9140.5253,"amount":0.5647,"side":"buy"},
{"timestamp":1560936292123,"price":9140.5253,"amount":0.0631,"side":"buy"}
]
GET /api/v1/exchangeinfo
example:
Request https://third.bitker.com/api/v1/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": "ETH_USDT",
"status": "trading",
"baseAsset": "ETH",
"baseAssetPrecision": 4,
"quoteAsset": "USDT",
"quoteAssetPrecision": 8
}, {
"symbol": "LTC_BTC",
"status": "trading",
"baseAsset": "LTC",
"baseAssetPrecision": 8,
"quoteAsset": "BTC",
"quoteAssetPrecision": 8
}, {
"symbol": "XRP_BTC",
"status": "trading",
"baseAsset": "XRP",
"baseAssetPrecision": 8,
"quoteAsset": "BTC",
"quoteAssetPrecision": 8
}, {
"symbol": "ETC_BTC",
"status": "trading",
"baseAsset": "ETC",
"baseAssetPrecision": 8,
"quoteAsset": "BTC",
"quoteAssetPrecision": 8
}, {
"symbol": "BTC_USDT",
"status": "trading",
"baseAsset": "BTC",
"baseAssetPrecision": 4,
"quoteAsset": "USDT",
"quoteAssetPrecision": 8
}, {
"symbol": "LTC_USDT",
"status": "trading",
"baseAsset": "LTC",
"baseAssetPrecision": 4,
"quoteAsset": "USDT",
"quoteAssetPrecision": 8
}, {
"symbol": "XRP_USDT",
"status": "trading",
"baseAsset": "XRP",
"baseAssetPrecision": 4,
"quoteAsset": "USDT",
"quoteAssetPrecision": 8
}, {
"symbol": "ETC_USDT",
"status": "trading",
"baseAsset": "ETC",
"baseAssetPrecision": 4,
"quoteAsset": "USDT",
"quoteAssetPrecision": 8
}, {
"symbol": "BKB_USDT",
"status": "trading",
"baseAsset": "BKB",
"baseAssetPrecision": 6,
"quoteAsset": "USDT",
"quoteAssetPrecision": 8
}
]