Data
GET/api/v1/orderbook
Fetch the latest orderbook for symbol from given exchange.
Request
Query Parameters
exchange stringrequired
Specifes exchange
Example: binance
symbol stringrequired
Specifies symbol
Example: BTC-USDT
Header Parameters
X-DTMX-APIKEY stringrequired
Your DataMaxi+ API key
Responses
- 200
- 400
- 401
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
]
]
as
object[]
list of asks (sell)
P number
price of orderbook entry
Example:
42000
v number
volume of orderbook entry
Example:
1000
b string
specifies the base token
Example:
BTC
bs
object[]
list of bids (buy)
P number
price of orderbook entry
Example:
42000
v number
volume of orderbook entry
Example:
1000
d integer
specifies the date and the time in UTC milliseconds
Example:
1632960000000
e string
specifies the exchange name
Example:
binance
q string
specifies the quote token
Example:
USDT
s string
specifies the symbol (base-quote)
Example:
BTC-USDT
[
{
"as": [
{
"P": 42000,
"v": 1000
}
],
"b": "BTC",
"bs": [
{
"P": 42000,
"v": 1000
}
],
"d": 1632960000000,
"e": "binance",
"q": "USDT",
"s": "BTC-USDT"
}
]
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
error string
error
specifies the error message
{
"error": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
error string
error
specifies the error message
{
"error": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
error string
error
specifies the error message
{
"error": "string"
}
Loading...