Bid-ask spread
curl --request GET \
--url https://api.polynode.dev/v1/spread/{token_id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.polynode.dev/v1/spread/{token_id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.polynode.dev/v1/spread/{token_id}', 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://api.polynode.dev/v1/spread/{token_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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://api.polynode.dev/v1/spread/{token_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.polynode.dev/v1/spread/{token_id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.polynode.dev/v1/spread/{token_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"spread": "0.01",
"token_id": "114694726451307654528948558967898493662917070661203465131156925998487819889437",
"question": "Netanyahu out by end of 2026?",
"slug": "netanyahu-out-before-2027-684-719-226"
}{
"error": "<string>"
}{
"error": "No orderbook exists for the requested token id"
}{
"error": "<string>"
}Orderbook
Bid-Ask Spread
Returns the bid-ask spread for a token, calculated as the difference between the best ask and best bid price.
For one-sided books, the spread equals the best price on the existing side. Response is enriched with PolyNode market metadata.
GET
/
v1
/
spread
/
{token_id}
Bid-ask spread
curl --request GET \
--url https://api.polynode.dev/v1/spread/{token_id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.polynode.dev/v1/spread/{token_id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.polynode.dev/v1/spread/{token_id}', 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://api.polynode.dev/v1/spread/{token_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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://api.polynode.dev/v1/spread/{token_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.polynode.dev/v1/spread/{token_id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.polynode.dev/v1/spread/{token_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"spread": "0.01",
"token_id": "114694726451307654528948558967898493662917070661203465131156925998487819889437",
"question": "Netanyahu out by end of 2026?",
"slug": "netanyahu-out-before-2027-684-719-226"
}{
"error": "<string>"
}{
"error": "No orderbook exists for the requested token id"
}{
"error": "<string>"
}Returns the bid-ask spread for a token or market, calculated as the difference between the best ask and best bid.
For one-sided books (only bids or only asks), the spread equals the best price on the existing side.
Identifier types
The{token_id} parameter accepts three types:
| Identifier | Format | Returns |
|---|---|---|
| Token ID | All digits, 70+ chars | Single spread (Polymarket-compatible) |
| Condition ID | Starts with 0x | Spreads for both outcomes |
| Slug | Human-readable string | Spreads for all outcomes in the event |
By token ID
curl "https://api.polynode.dev/v1/spread/114694726451307654528948558967898493662917070661203465131156925998487819889437" \
-H "x-api-key: YOUR_KEY"
{
"spread": "0.01",
"token_id": "114694726451307654528948558967898493662917070661203465131156925998487819889437",
"question": "Netanyahu out by end of 2026?",
"slug": "netanyahu-out-before-2027-684-719-226"
}
By condition ID
curl "https://api.polynode.dev/v1/spread/0xd1796c09d0d6f876f8580086ae9808ec991784e3a74b25a1830a25de71a78c96" \
-H "x-api-key: YOUR_KEY"
{
"condition_id": "0xd1796c09d0d6f876f8580086ae9808ec991784e3a74b25a1830a25de71a78c96",
"question": "Netanyahu out by end of 2026?",
"event_title": "Netanyahu out by...?",
"outcomes": [
{"outcome": "Yes", "token_id": "11469472645...", "spread": "0.01"},
{"outcome": "No", "token_id": "66255671088...", "spread": "0.01"}
]
}
Calculation
spread = best_ask - best_bid
Notes
- The
spreadvalue is a decimal string (e.g."0.01"). - Returns a 404 if no book exists for the identifier.
Authorizations
Path Parameters
Token ID (all digits), condition ID (starts with 0x), or event slug. Token ID returns a single book; condition ID and slug return all outcomes.
Response
Bid-ask spread
Bid-ask spread. The spread field matches Polymarket's CLOB /spread response. Additional fields are PolyNode enrichment.

