Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

Kalshi Get Kalshi Market OrderBook

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

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

Prezzo
$0.02USD / chiamata
Metodo
POST
Risposta
JSON
Parametri
1 obbligatori · 1 opzionali

Playground

Input
Market ticker
0100
Depth of the orderbook to retrieve (0 or negative means all levels, 1-100 for specific depth) Intervallo: da 0 a 100.
OutputPronto

Il tuo output apparirà qui

Completa gli input, poi fai clic su Esegui.

README API

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.

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
Kalshi$0.02 per chiamataJSON
Kalshi$0.02 per chiamataJSON
Kalshi$0.02 per chiamataJSON
Kalshi$0.02 per chiamataJSON

Domande

FAQ

Come uso l'API Kalshi Get Kalshi Market OrderBook?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/kalshi/markets-orderbook con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.

Quanto costa l'API Kalshi Get Kalshi Market OrderBook?

$0.02 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.

Quali parametri accetta l'API Kalshi Get Kalshi Market OrderBook?

Richiesti: ticker (string). Facoltativi: depth (integer). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.

Cosa restituisce l'API Kalshi Get Kalshi Market OrderBook?

Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.

Mi serve un account sviluppatore o una chiave API Kalshi?

No. Kalshi Get Kalshi Market OrderBook funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Kalshi.