tickerstringobrigatório
Market ticker
https://api.sandbase.ai/v1/api/kalshi/markets-orderbookGet Kalshi Market OrderBook from Kalshi. Returns the official Kalshi API response unchanged.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
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.
Comece a construir
Endpoint da API da plataforma com autenticação unificada e rastreamento de uso.
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"
}'Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha sua chave no servidor. Não a exponha em código do navegador.
tickerstringobrigatórioMarket ticker
depthintegerDepth of the orderbook to retrieve (0 or negative means all levels, 1-100 for specific depth)
Padrão: 0
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
Nenhuma resposta salva foi publicada. Execute a API no Playground para inspecionar a resposta.
Explorar mais
| API | Preço | Resposta |
|---|---|---|
Kalshi | $0.02 por chamada | JSON |
Kalshi | $0.02 por chamada | JSON |
Kalshi | $0.02 por chamada | JSON |
Kalshi | $0.02 por chamada | JSON |
Perguntas
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/kalshi/markets-orderbook com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.
$0.02 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Obrigatórios: ticker (string). Opcionais: depth (integer). A tabela de Parâmetros e o Playground nesta página listam todos os campos.
Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.
Não. Kalshi Get Kalshi Market OrderBook funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Kalshi separadamente.