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

Kalshi Get Kalshi Market OrderBook

API-Dokumentation
https://api.sandbase.ai/v1/api/kalshi/markets-orderbook

Get Kalshi Market OrderBook from Kalshi. Returns the official Kalshi API response unchanged.

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

Playground

Eingabe
Market ticker
0100
Depth of the orderbook to retrieve (0 or negative means all levels, 1-100 for specific depth) Bereich: 0 bis 100.
AusgabeBereit

Ihre Ausgabe wird hier angezeigt

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

API-README

Kalshi Get Kalshi Market OrderBook API

Returns the current order book for one Kalshi market. You pass the market ticker, and you can limit the number of price levels with depth.

Use cases

  • Check the bid side of a Kalshi market before placing an order.
  • Track how the yes_dollars and no_dollars books change over time for a single market.
  • Detect markets with no resting orders by checking for empty lists.
  • Chart order book depth for a weather market such as a New York daily high temperature.

Request

curl -X POST "https://api.sandbase.ai/v1/api/kalshi/markets-orderbook" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ticker": "KXHIGHNY-26OCT31-B60.5"}'

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

Parameters

NameTypeRequiredDescription
tickerstringYesMarket ticker
depthintegerNoDepth of the orderbook to retrieve (0 or negative means all levels, 1-100 for specific depth)

Example response

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

{
  "orderbook_fp": {
    "no_dollars": [],
    "yes_dollars": []
  }
}

Response fields

FieldMeaning
orderbook_fpTop-level object that holds the order book for the requested market.
orderbook_fp.yes_dollarsList of price levels on the yes side of the book. The list is empty in the sample response, which means no yes orders were listed.
orderbook_fp.no_dollarsList of price levels on the no side of the book. The list is empty in the sample response, which means no no orders were listed.

Notes

  • Get the ticker value from Kalshi Get Kalshi Markets. Use the market's ticker, not the event ticker.
  • Set depth from 1 to 100 to limit the number of levels. The default 0 returns all levels.
  • Both lists can come back empty, as in the example for KXHIGHNY-26OCT31-B60.5.
  • For the last price of a market, call Kalshi Get Market Price.

Pricing

$0.02 per successful call. Failed calls are not charged.

Mehr entdecken

Verwandte APIs

Alle APIs
APIPreisAntwort
Kalshi$0.02 pro AufrufJSON
Kalshi$0.02 pro AufrufJSON
Kalshi$0.02 pro AufrufJSON
Kalshi$0.02 pro AufrufJSON

Fragen

FAQ

Wie verwende ich die Kalshi Get Kalshi Market OrderBook API?

Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/kalshi/markets-orderbook 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 Kalshi Get Kalshi Market OrderBook API?

$0.02 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 Kalshi Get Kalshi Market OrderBook API?

Erforderlich: ticker (string). Optional: depth (integer). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.

Was gibt die Kalshi Get Kalshi Market OrderBook 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 Kalshi-Entwicklerkonto oder einen API-Schlüssel?

Nein. Kalshi Get Kalshi Market OrderBook 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 Kalshi API beantragen.