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; при просмотре живой запрос не выполняется.
Сохранённый ответ не опубликован. Запустите API в Playground, чтобы посмотреть его ответ.
Посмотреть больше
| API | Цена | Ответ |
|---|---|---|
Kalshi | $0.02 за запрос | JSON |
Kalshi | $0.02 за запрос | JSON |
Kalshi | $0.02 за запрос | JSON |
Kalshi | $0.02 за запрос | JSON |
Вопросы
Отправьте POST-запрос на https://api.sandbase.ai/v1/api/kalshi/markets-orderbook, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
$0.02 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.
Обязательные: ticker (string). Необязательные: depth (integer). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.
Нет. Kalshi Get Kalshi Market OrderBook работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Kalshi.