Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

Kalshi Get Kalshi Market OrderBook

Docs da API
https://api.sandbase.ai/v1/api/kalshi/markets-orderbook

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

Preço
$0.02USD / chamada
Método
POST
Resposta
JSON
Parâmetros
1 obrigatórios · 1 opcionais

Playground

Entrada
Market ticker
0100
Depth of the orderbook to retrieve (0 or negative means all levels, 1-100 for specific depth) Intervalo: 0 a 100.
SaídaPronto

Sua saída aparecerá aqui

Preencha as entradas e clique em Executar.

README da API

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.

Explorar mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
Kalshi$0.02 por chamadaJSON
Kalshi$0.02 por chamadaJSON
Kalshi$0.02 por chamadaJSON
Kalshi$0.02 por chamadaJSON

Perguntas

FAQ

Como eu uso a API Kalshi Get Kalshi Market OrderBook?

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.

Quanto custa a API Kalshi Get Kalshi Market OrderBook?

$0.02 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.

Quais parâmetros a API Kalshi Get Kalshi Market OrderBook aceita?

Obrigatórios: ticker (string). Opcionais: depth (integer). A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API Kalshi Get Kalshi Market OrderBook retorna?

Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.

Preciso de uma conta de desenvolvedor Kalshi ou de uma chave de API?

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.