Get Orderbook
GET/v1/markets/:market_id/orderbook
List the current bid and ask offers of a specific market.
Request
Path Parameters
market_id stringrequired
Market identification.
Query Parameters
max_depth integer
Possible values: non-empty
and <= 100 characters
, >= 1
and <= 100
Maximum number of itens. Default: 20.
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Orderbook
Schema
- Array [
- ]
- Array [
- ]
result object
asks object[]
List of asks (from sellers) offers.
price string
The value that will be paid to seller.
size string
The amount to be selled.
bids object[]
List of bid (from buyers) offers.
price string
The value will be paid to buyer.
size string
The amount to be buyed.
updated_at updated_at (integer)
Timestamp of when this object was last updated.
{
"result": {
"asks": [
{
"price": "23235.14",
"size": "0.04948"
}
],
"bids": [
{
"price": "22566.62",
"size": "0.029022"
}
],
"updated_at": 1675810392753862
}
}
{
"result": {
"asks": [
{
"price": "23235.14",
"size": "0.04948"
},
{
"price": "23351.32",
"size": "0.015797"
}
],
"bids": [
{
"price": "22566.62",
"size": "0.029022"
},
{
"price": "22453.79",
"size": "0.009428"
}
],
"updated_at": 1682358276386091
}
}
Loading...