Get order book
get
https://api.cryptomus.com/v1/exchange/market/order-book/{currencyPair}
Request
Query parameters
Name | Parameter type | Definition |
---|---|---|
currencyPair* | string | Pair of currency |
level* | integer | Level of volumeAvailable options:• 0• 1• 2• 3• 4• 5 |
Parameter type
stringDefinition
Pair of currencyParameter type
integerDefinition
Level of volumeAvailable options:- 0- 1- 2- 3- 4- 5
* - mandatory parameter
Request example
curl --location 'https://api.cryptomus.com/v1/exchange/market/order-book/BTC_USDT?level=1'
COPYResponse
Response parameters
Name | Parameter type | Definition |
---|---|---|
bids | array | Array of bids |
bids.*.price | string | Bids price |
bids.*.quantity | string | Bids quantity |
asks | array | Array of asks |
asks.*.price | string | Base volume |
asks.*.quantity | string | Asks quantity |
Parameter type
arrayDefinition
Array of bidsParameter type
stringDefinition
Bids priceParameter type
stringDefinition
Bids quantityParameter type
arrayDefinition
Array of asksParameter type
stringDefinition
Base volumeParameter type
stringDefinition
Asks quantity
Response example
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}
COPY