获取订单簿
get
https://api.cryptomus.com/v1/exchange/market/order-book/{currencyPair}
要求
查询参数
姓名 | 参数类型 | 定义 |
---|---|---|
currencyPair* | string | 货币对 |
level* | integer | 成交量等级可用选项:• 0• 1• 2• 3• 4• 5 |
参数类型
string定义
货币对参数类型
integer定义
成交量等级可用选项:- 0- 1- 2- 3- 4- 5
* - 强制性参数
请求示例
curl --location 'https://api.cryptomus.com/v1/exchange/market/order-book/BTC_USDT?level=1'
复制回复
响应参数
姓名 | 参数类型 | 定义 |
---|---|---|
bids | array | 买单数组 |
bids.*.price | string | 买单价格 |
bids.*.quantity | string | 买单数量 |
asks | array | 卖单数组 |
asks.*.price | string | 基础成交量 |
asks.*.quantity | string | 卖单数量 |
参数类型
array定义
买单数组参数类型
string定义
买单价格参数类型
string定义
买单数量参数类型
array定义
卖单数组参数类型
string定义
基础成交量参数类型
string定义
卖单数量
响应示例
1{
2 "state": 0,
3 "result": {
4 "timestamp": "1724069797.1308",
5 "bids": [
6 {
7 "price": "0.04548320",
8 "quantity": "12462000"
9 },
10 {
11 "price": "3.00000000",
12 "quantity": "12457000"
13 }
14 ],
15 "asks": [
16 {
17 "price": "2.73042000",
18 "quantity": "12506000"
19 },
20 {
21 "price": "0.33660000",
22 "quantity": "12508000"
23 }
24 ]
25 }
26}
复制