CLOB Read (Public)
Get Spread
Get the best bid/ask spread for a single token.
Public endpoint — no authentication required.
Mirrors Polymarket’s GET /spread?token_id=..., including the
$0.10 cap on reported spread for thin markets.
GET
/
v1
/
spread
Get Spread
curl --request GET \
--url https://api.polysimulator.com/v1/spreadimport requests
url = "https://api.polysimulator.com/v1/spread"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.polysimulator.com/v1/spread', 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.polysimulator.com/v1/spread",
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://api.polysimulator.com/v1/spread"
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://api.polysimulator.com/v1/spread")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.polysimulator.com/v1/spread")
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{
"spread": "<string>",
"bid": "<string>",
"ask": "<string>"
}{
"error": "<string>",
"message": "<string>",
"details": {},
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"details": {},
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"details": {},
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"details": {},
"request_id": "<string>"
}Query Parameters
Required (handler-validated) — CLOB outcome token ID. Missing OR empty returns 400 {"error": "Invalid token id"} uniformly (no 422 leak). Same handler-validation pattern as GET /v1/price and GET /v1/book.
Was this page helpful?
⌘I
Get Spread
curl --request GET \
--url https://api.polysimulator.com/v1/spreadimport requests
url = "https://api.polysimulator.com/v1/spread"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.polysimulator.com/v1/spread', 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.polysimulator.com/v1/spread",
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://api.polysimulator.com/v1/spread"
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://api.polysimulator.com/v1/spread")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.polysimulator.com/v1/spread")
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{
"spread": "<string>",
"bid": "<string>",
"ask": "<string>"
}{
"error": "<string>",
"message": "<string>",
"details": {},
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"details": {},
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"details": {},
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"details": {},
"request_id": "<string>"
}