tickerstring必須
Market ticker
https://api.sandbase.ai/v1/api/kalshi/markets-orderbookGet Kalshi Market OrderBook from Kalshi. Returns the official Kalshi API response unchanged.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
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.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
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"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
tickerstring必須Market ticker
depthintegerDepth of the orderbook to retrieve (0 or negative means all levels, 1-100 for specific depth)
デフォルト: 0
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Kalshi | $0.02 / 回 | JSON |
Kalshi | $0.02 / 回 | JSON |
Kalshi | $0.02 / 回 | JSON |
Kalshi | $0.02 / 回 | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/kalshi/markets-orderbook に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.02、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: ticker (string)。 任意: depth (integer)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Kalshi Get Kalshi Market OrderBook は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Kalshi の API アクセスを別途申請する必要はありません。