GET ZKE Data
REST API Baseurl : https://openapi.zke.com
https://openapi.zke.com
[Trade ]
The trades endpoint is to return data on all recently completed trades for a given market pair.
Path: /open/pub/trades
Method: GET
Description:
{
"code": "0",
"msg": "suc",
"message": null,
"data": {
"date": 1574735405297,
"trades": [
{
"tradeID": 3523643,
"price": "0.01",
"base_volume": "569000",
"quote_volume": "0.01000000",
"trade_timestamp": "1566360780",
"type": "sell"
},
{
"tradeID": 3523642,
"price": "0.01",
"base_volume": "569000",
"quote_volume": "0.01000000",
"trade_timestamp": "1566360780",
"type": "sell"
}
]
}
}
Parameters
N/A
Query
base
YES
btc
quote
YES
usdt
trades
NO
100
Default 100.
Response:
code
string
NO
msg
string
NO
message
null
NO
data
object
NO
├─ date
number
NO
├─ trades
object []
NO
item Type: object
├─ tradeID
number
YES
Transaction ID
├─ price
string
YES
Price
├─ base_volume
string
YES
base currency transaction Volume
├─ quote_volume
string
YES
quto Currency Transaction Volume
├─ trade_timestamp
string
YES
Timestamp
├─ type
string
YES
sell/buy
[Ticker]
The ticker endpoint is to provide a 24-hour pricing and volume summary for each market pair available on the exchange.
Path: /open/pub/ticker
Method: GET
Description:
{
"code": "0",
"msg": "suc",
"message": null,
"data": {
"date": 1574735405297,
"ticker": {
"BTC_USDT": {
"base_id": "1",
"quote_id": "825",
"last_price": "10000",
"quote_volume": "20000",
"base_volume": "2"
},
"LTC_BTC": {
"base_id": "2",
"quote_id": "1",
"last_price": "0.00699900",
"base_volume": "20028,526",
"quote_volume": "279594"
}
}
}
}
Parameters
N/A
Response:
code
string
NO
msg
string
NO
message
null
NO
data
object
NO
├─ date
number
NO
├─ ticker
object
NO
├─ BTC_USDT
object
NO
├─ base_id
string
NO
base currency ID
├─ quote_id
string
NO
quto currencyID
├─ last_price
string
NO
Latest Trading Price
├─ quote_volume
string
NO
quto Currency Transaction Volumes
├─ base_volume
string
NO
base Currency Transaction Volumes
├─ LTC_BTC
object
NO
├─ base_id
string
NO
base currency ID
├─ quote_id
string
NO
quto currency ID
├─ last_price
string
NO
├─ base_volume
string
NO
├─ quote_volume
string
NO
[Asset]
The assets endpoint is to provide a detailed summary for each currency available on the exchange.
Path: /open/pub/asset
Method: GET
Description:
{
"code": "0",
"msg": "suc",
"message": null,
"data": {
"date": 1574735405297,
"asset": {
"BTC": {
"name": "bitcoin",
"unified_cryptoasset_id": "1",
"can_withdraw": "true",
"can_deposit": "true",
"min_withdraw": "0.01",
"max_withdraw ": "100"
},
"ETH": {
"name": "bitcoin",
"unified_cryptoasset_id": "1027",
"can_withdraw": "true",
"can_deposit": "true",
"min_withdraw": "0.01",
"max_withdraw ": "100"
}
}
}
}
Parameters
N/A
Response:
code
string
NO
msg
string
NO
message
null
NO
data
object
NO
├─ date
number
NO
├─ asset
object
NO
├─ BTC
object
NO
├─ name
string
NO
Currency Full Name
├─ unified_cryptoasset_id
string
NO
Currency ID
├─ can_withdraw
string
NO
is open the withdrawal
├─ can_deposit
string
NO
is to open the deposit
├─ min_withdraw
string
NO
Minimum Withdrawal Amount
├─ max_withdraw
string
NO
Maximum Withdrawal Amount
├─ ETH
object
NO
├─ name
string
NO
├─ unified_cryptoasset_id
string
NO
Currency ID
├─ can_withdraw
string
NO
├─ can_deposit
string
NO
├─ min_withdraw
string
NO
├─ max_withdraw
string
NO
[OrderBook]
The order book endpoint is to provide a complete level 2 order book (arranged by best asks/bids) with full depth returned for a given market pair.
Path: /open/pub/orderbook
Method: GET
Description:
{
"code": "0",
"msg": "suc",
"message": null,
"data": {
"date": 1574735405297,
"orderbook": {
"bids": [
["12462000", "0.04548320"],
["12457000", "3.00000000"]
],
"asks": [
["12506000", "2.73042000"],
["12508000", "0.33660000"]
]
}
}
}
Parameters
N/A
Query
base
YES
btc
btc
quote
YES
usdt
usdt
depth
NO
0,1,2
Default 0
bids
NO
150
asks
NO
150
Response:
code
string
NO
msg
string
NO
message
null
NO
data
object
NO
├─ date
number
NO
├─ orderbook
object
NO
├─ bids
array []
NO
item Type: array
├─
NO
├─
NO
├─ asks
array []
NO
item Type: array
├─
NO
├─
NO
[SUMMARY]
The summary endpoint is to provide an overview of market data for all tickers and all market pairs on the exchange.
Path: /open/api/get_allticker
Method: GET
Description:
Parameters
N/A
Response:
code
string
NO
mock: 0
msg
string
NO
mock: suc
data
object
NO
├─ date
number
NO
Server time when returning data
├─ ticker
object []
NO
item Type: object
├─ symbol
string
YES
Trading pair
├─ high
string
YES
High Price
├─ low
string
YES
Low Price
├─ buy
number
YES
Buy price
├─ sell
number
YES
Sell Price
├─ vol
string
YES
24H Trade Volume
├─ last
number
YES
Latest Price
├─ rose
string
YES
Change(24H)
Last updated