Get orderbook for specific market
GET
/orderbook/{marketId}:::info[]
The order book stores prices based on the Yes
outcome.
See Understanding the Orderbook for calculating the No
outcome price.
:::
Provide marketId and get orderbook for that specific market
Request
Path Params
marketId
string
required
a string that will be parsed into a number
Request samples
Responses
OK(200)
HTTP Code: 200
Content Type : JSONapplication/json
Response 200
Data Schema
success
boolean
required
a boolean
data
object
required
marketId
number
required
a number
updateTimestampMs
number
required
a number
asks
array [array]
required
bids
array [array]
required
Example
{
"success": true,
"data": {
"marketId": 0,
"updateTimestampMs": 0,
"asks": [
[
0,
0
]
],
"bids": [
[
0,
0
]
]
}
}
Last modified: 11 days ago