Endpoints
Get orderbook
The book as bids only, per outcome, best price first. An offer to sell Up at p is the same liquidity as a bid for Down at 1 − p, so it is listed once, under down. checksum covers the full book’s top 10 levels per side — the same number the websocket sends.
GET
/
markets
/
{ticker}
/
orderbook
Get orderbook
curl --request GET \
--url https://api.updown.fast/trade-api/v1/markets/{ticker}/orderbookimport requests
url = "https://api.updown.fast/trade-api/v1/markets/{ticker}/orderbook"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.updown.fast/trade-api/v1/markets/{ticker}/orderbook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"orderbook": {
"market_ticker": "<string>",
"up": [
[
"<string>",
"<string>"
]
],
"down": [
[
"<string>",
"<string>"
]
],
"checksum": 4503599627370495,
"ts_ms": 4503599627370495
}
}{
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}⌘I
Get orderbook
curl --request GET \
--url https://api.updown.fast/trade-api/v1/markets/{ticker}/orderbookimport requests
url = "https://api.updown.fast/trade-api/v1/markets/{ticker}/orderbook"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.updown.fast/trade-api/v1/markets/{ticker}/orderbook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"orderbook": {
"market_ticker": "<string>",
"up": [
[
"<string>",
"<string>"
]
],
"down": [
[
"<string>",
"<string>"
]
],
"checksum": 4503599627370495,
"ts_ms": 4503599627370495
}
}{
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}