Skip to main content

GET /api/v1/market/orderbook/{market_id}

Returns the current orderbook for a market, showing all open limit orders. Bids are sorted from highest to lowest price, asks from lowest to highest.

Authentication​

None required. This is a public endpoint.

Request​

Path Parameters​

ParameterTypeRequiredDescription
market_idintegerYesThe market ID

Example​

curl https://intotes.com/api/v1/market/orderbook/101

Response​

200 OK​

Prices are expressed as integers in the range 0--10000, representing a probability from 0% to 100% with two decimal places of precision (e.g., 5500 = 55.00%). Amounts are in share cents.

{
"market_id": 101,
"bids": [
{
"price": 5500,
"amount": 10000
},
{
"price": 5400,
"amount": 25000
},
{
"price": 5200,
"amount": 15000
}
],
"asks": [
{
"price": 5600,
"amount": 12000
},
{
"price": 5800,
"amount": 8000
},
{
"price": 6000,
"amount": 30000
}
]
}

Fields​

FieldTypeDescription
market_idintegerThe market this orderbook belongs to
bidsarrayBuy orders, sorted highest price first
bids[].priceintegerBid price (0--10000 scale)
bids[].amountintegerBid size in share cents
asksarraySell orders, sorted lowest price first
asks[].priceintegerAsk price (0--10000 scale)
asks[].amountintegerAsk size in share cents

Price Scale​

The orderbook uses an integer price scale from 0 to 10000:

Price ValueProbabilityMeaning
00.00%Impossible
250025.00%Low probability
500050.00%Even odds
750075.00%High probability
10000100.00%Certain

Errors​

StatusCodeDescription
400invalid_market_idThe market ID is not a valid integer
404market_not_foundNo market exists with the given ID
500internal_errorUnexpected server error