curl --request GET \
--url https://core.api.dev.predictstreet.sde.adifoundation.ai/api/markets/{symbol}/orderbookimport requests
url = "https://core.api.dev.predictstreet.sde.adifoundation.ai/api/markets/{symbol}/orderbook"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://core.api.dev.predictstreet.sde.adifoundation.ai/api/markets/{symbol}/orderbook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://core.api.dev.predictstreet.sde.adifoundation.ai/api/markets/{symbol}/orderbook",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://core.api.dev.predictstreet.sde.adifoundation.ai/api/markets/{symbol}/orderbook"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://core.api.dev.predictstreet.sde.adifoundation.ai/api/markets/{symbol}/orderbook")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.api.dev.predictstreet.sde.adifoundation.ai/api/markets/{symbol}/orderbook")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"symbol": "<string>",
"bids": [
{
"price": "<string>",
"quantity": "<string>"
}
],
"asks": [
{
"price": "<string>",
"quantity": "<string>"
}
],
"hash": "<string>",
"seq": 100,
"mirrorSeq": 101
}Orderbook snapshot
Aggregated resting depth (OPEN/PARTIAL GTC orders) by side and price. On a binary market YES and NO are unified into one canonical YES-space book, so side is the canonical side; pass outcome (digits-only index) to narrow an N-ary market. hash equals the hash on the token_book WebSocket book_snapshot / book_update frames for the same state (using canonical lossless decimal normalization across 2-decimal 0.01 and 3-decimal 0.001 levels), and seq carries the matcher’s per-outcome native sequence number (comparable to WS data.nativeSeq, with optional mirrorSeq on legacy non-binary mirror-eligible 2-outcome markets). For real-time updates subscribe to the token_book channel instead of polling.
curl --request GET \
--url https://core.api.dev.predictstreet.sde.adifoundation.ai/api/markets/{symbol}/orderbookimport requests
url = "https://core.api.dev.predictstreet.sde.adifoundation.ai/api/markets/{symbol}/orderbook"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://core.api.dev.predictstreet.sde.adifoundation.ai/api/markets/{symbol}/orderbook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://core.api.dev.predictstreet.sde.adifoundation.ai/api/markets/{symbol}/orderbook",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://core.api.dev.predictstreet.sde.adifoundation.ai/api/markets/{symbol}/orderbook"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://core.api.dev.predictstreet.sde.adifoundation.ai/api/markets/{symbol}/orderbook")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.api.dev.predictstreet.sde.adifoundation.ai/api/markets/{symbol}/orderbook")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"symbol": "<string>",
"bids": [
{
"price": "<string>",
"quantity": "<string>"
}
],
"asks": [
{
"price": "<string>",
"quantity": "<string>"
}
],
"hash": "<string>",
"seq": 100,
"mirrorSeq": 101
}Path Parameters
Query Parameters
Outcome index, digits only: anything else (an empty value, 1.0, 1abc) answers 400 invalid_outcome, as does an index past the outcomes the market lists. Omitting it aggregates across all outcomes on an N-ary market; on a binary market it returns the canonical YES book (outcome=0), which already carries both outcomes.
x >= 0Response
OK
Matcher per-outcome native book sequence number (comparable to data.nativeSeq on WebSocket book_update/book_snapshot frames, not the per-pod WebSocket frame.seq cursor; resets on matcher reload; 0 before the first book event after engine start/restart, on aggregate multi-outcome views where no single outcome was requested, or when unavailable; clients should only compare seq > 0 against WS data.nativeSeq, and on legacy non-binary mirror-eligible 2-outcome markets seq reflects the requested outcome's own counter, matching data.nativeSeq).
100
On legacy non-binary mirror-eligible 2-outcome markets where core-api and ws-gateway merge complement levels from the opposite outcome, mirrorSeq reflects the opposite outcome's matcher sequence number (omitted when the opposite outcome book does not exist yet). Undefined on single-outcome, native binary (is_binary=true), or multi-outcome aggregate views. Clients reconciling merged views should compare (seq, mirrorSeq) or reconcile against the WS frame's top-level hash (noting that the WS full-book hash differs from depth-capped REST hashes when a side exceeds REST depth; clients must not drop WS frames solely because data.nativeSeq <= REST seq).
101