取得訂單簿

get
https://api.cryptomus.com/v1/exchange/market/order-book/{currencyPair}
複製

要求

查詢參數

姓名參數類型定義
currencyPair*string貨幣對
level*integer音量等級可用選項:012345

參數類型

string

定義

貨幣對

參數類型

integer

定義

音量等級可用選項:- 0- 1- 2- 3- 4- 5

* - 必需參數

請求範例

curl --location 'https://api.cryptomus.com/v1/exchange/market/order-book/BTC_USDT?level=1'
複製

回覆

響應參數

姓名參數類型定義
bidsarray出價數組
bids.*.pricestring買入價
bids.*.quantitystring投標數量
asksarray詢問數組
asks.*.pricestring基礎體積
asks.*.quantitystring詢問數量

參數類型

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}
複製