tickerstringwajib
Market ticker
https://api.sandbase.ai/v1/api/kalshi/markets-orderbookGet Kalshi Market OrderBook from Kalshi. Returns the official Kalshi API response unchanged.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
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.
yes_dollars and no_dollars books change over time for a single market.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.
| Name | Type | Required | Description |
|---|---|---|---|
ticker | string | Yes | Market ticker |
depth | integer | No | Depth of the orderbook to retrieve (0 or negative means all levels, 1-100 for specific depth) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"orderbook_fp": {
"no_dollars": [],
"yes_dollars": []
}
}
| Field | Meaning |
|---|---|
orderbook_fp | Top-level object that holds the order book for the requested market. |
orderbook_fp.yes_dollars | List 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_dollars | List 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. |
ticker value from Kalshi Get Kalshi Markets. Use the market's ticker, not the event ticker.depth from 1 to 100 to limit the number of levels. The default 0 returns all levels.KXHIGHNY-26OCT31-B60.5.$0.02 per successful call. Failed calls are not charged.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
curl -X POST "https://api.sandbase.ai/v1/api/kalshi/markets-orderbook" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"depth": 0,
"ticker": "KXHIGHNY-26OCT31-B60.5"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
tickerstringwajibMarket ticker
depthintegerDepth of the orderbook to retrieve (0 or negative means all levels, 1-100 for specific depth)
Default: 0
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Kalshi | $0.02 per panggilan | JSON |
Kalshi | $0.02 per panggilan | JSON |
Kalshi | $0.02 per panggilan | JSON |
Kalshi | $0.02 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/kalshi/markets-orderbook dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
$0.02 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: ticker (string). Opsional: depth (integer). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. Kalshi Get Kalshi Market OrderBook berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Kalshi secara terpisah.