Sand AISand AI MAGI-2MAGI-2 artık SandBase'de: yerel sesli 1080p videoŞimdi deneyin

Kalshi Get Kalshi Market OrderBook

API dokümanları
https://api.sandbase.ai/v1/api/kalshi/markets-orderbook

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

Fiyat
$0.02USD / çağrı
Yöntem
POST
Yanıt
JSON
Parametreler
1 gerekli · 1 isteğe bağlı

Oynatma Alanı

Girdi
Market ticker
0100
Depth of the orderbook to retrieve (0 or negative means all levels, 1-100 for specific depth) Aralık: 0 ile 100 arasında.
ÇıktıHazır

Çıktınız burada görünecek

Girdileri tamamlayın, ardından Çalıştır'a tıklayın.

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.

Daha fazlasını keşfedin

İlgili APIs

Tüm APIs
APIFiyatYanıt
Kalshi$0.02 çağrı başınaJSON
Kalshi$0.02 çağrı başınaJSON
Kalshi$0.02 çağrı başınaJSON
Kalshi$0.02 çağrı başınaJSON

Sorular

SSS

Kalshi Get Kalshi Market OrderBook API'sini nasıl kullanırım?

SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/kalshi/markets-orderbook adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.

Kalshi Get Kalshi Market OrderBook API'sinin fiyatı nedir?

çağrı başına $0.02, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.

Kalshi Get Kalshi Market OrderBook API'si hangi parametreleri kabul eder?

Gerekli: ticker (string). İsteğe bağlı: depth (integer). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.

Kalshi Get Kalshi Market OrderBook API'si ne döndürür?

Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.

Bir Kalshi geliştirici hesabına veya API anahtarına ihtiyacım var mı?

Hayır. Kalshi Get Kalshi Market OrderBook, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Kalshi API erişimi için ayrıca başvuru yapmanız gerekmez.