Sand AISand AI MAGI-2MAGI-2 ist jetzt auf SandBase: 1080p-Video mit nativem AudioJetzt testen

Polymarket Get spread

API-Dokumentation
https://api.sandbase.ai/v1/api/polymarket/spread

Retrieves the spread for a specific token ID. The spread is the difference between the best ask and best bid prices.

Preis
$0.012USD / Aufruf
Methode
POST
Antwort
JSON
Parameter
1 erforderlich · 0 optional

Playground

Eingabe
Token ID (asset ID)
AusgabeBereit

Ihre Ausgabe wird hier angezeigt

Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.

API-README

Polymarket Get spread API

Returns the current spread for one Polymarket outcome token. The spread is the gap between the best ask price and the best bid price. You send one token_id.

Use cases

  • Check how tight the market is for an outcome token before placing an order.
  • Flag thin markets by filtering out tokens with a wide spread.
  • Track the spread of a token over time to see how the gap between bid and ask changes.

Request

curl -X POST "https://api.sandbase.ai/v1/api/polymarket/spread" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"token_id": "32338220190071351435772801779725302244575775216413325951443816017994629993401"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
token_idstringYesToken ID (asset ID)

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "spread": "0.001"
}

Response fields

FieldMeaning
spreadThe difference between the best ask price and the best bid price for the token.
spreadReturned as a decimal string. In the sample, 0.001 means the best ask and best bid are 0.001 apart.
spreadA smaller value means the best bid and best ask sit closer together. A larger value means they sit further apart.

Notes

Pricing

$0.012 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Mehr entdecken

Verwandte APIs

Alle APIs
APIPreisAntwort
Polymarket$0.012 pro AufrufJSON
Polymarket$0.012 pro AufrufJSON
Polymarket$0.012 pro AufrufJSON
Polymarket$0.012 pro AufrufJSON
Polymarket$0.012 pro AufrufJSON
Polymarket$0.012 pro AufrufJSON

Fragen

FAQ

Wie verwende ich die Polymarket Get spread API?

Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/polymarket/spread mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.

Was kostet die Polymarket Get spread API?

$0.012 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.

Welche Parameter akzeptiert die Polymarket Get spread API?

Erforderlich: token_id (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.

Was gibt die Polymarket Get spread API zurück?

Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.

Benötige ich ein Polymarket-Entwicklerkonto oder einen API-Schlüssel?

Nein. Polymarket Get spread läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Polymarket API beantragen.