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 [
]
]
asks
object[]
price number
volume number
base string
bids
object[]
price number
volume number
exchange string
quote string
symbol string
timestamp integer
[
{
"asks": [
{
"price": 0,
"volume": 0
}
],
"base": "string",
"bids": [
{
"price": 0,
"volume": 0
}
],
"exchange": "string",
"quote": "string",
"symbol": "string",
"timestamp": 0
}
]
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...