Get order book
REQUEST wss://ws-mdpro.bitvavo.com/v2 getBook
Returns the list of up to 1000 bids and asks per request for the specified market, sorted by price.
Rate limit weight points: 1
Request
- Schema
- Example (body)
Body
Set value to getBook.
getBookYour identifier for the request.
1The market for which to return the order book.
BTC-EURThe number of bids and asks to return.
Possible values: >= 1 and <= 1000
4{
"action": "getBook",
"requestId": 1,
"market": "BTC-EUR",
"depth": 4
}
Response
- Schema
- Example (body)
Schema
-
price: the offer for 1 unit of base currency in the amount of quote currency. For example, 34243 Euros. -
size: the amount of base currency in the offer. For example, 0.1 Bitcoin. -
price: the offer for 1 unit of base currency in the amount of quote currency. For example, 34243 Euros. -
size: the amount of base currency in the offer. For example, 0.1 Bitcoin.
The action performed.
getBookYour identifier for the request.
1response object
The market for which the order book is returned.
BTC-EURUnique identifier of the market data snapshot. Increments by 1 with each order book update.
WS Market Data Pro
noncevalues cannot be used with standard WebSocket or REST APIs.
3The list of buy orders for the specified market and depth. Every bid contains:
[["4999.9","0.015"],["4999.8","0.015"]]The list of sell orders for the specified market and depth. Every bid contains:
[["5001.1","0.015"],["5001.2","0.015"]]The Unix timestamp in nanoseconds of the last transaction event.
1542967486256The sequence number of the requested order book snapshot in our system.
438524{
"action": "getBook",
"requestId": 1,
"response": {
"market": "BTC-EUR",
"nonce": 3,
"bids": [
[
"4999.9",
"0.015"
],
[
"4999.8",
"0.015"
]
],
"asks": [
[
"5001.1",
"0.015"
],
[
"5001.2",
"0.015"
]
],
"timestamp": 1542967486256,
"mdSeqNo": 438524
}
}