Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Kalshi Get Kalshi Market OrderBook

เอกสาร API
https://api.sandbase.ai/v1/api/kalshi/markets-orderbook

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

ราคา
$0.02USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 1 ไม่บังคับ

Playground

อินพุต
Market ticker
0100
Depth of the orderbook to retrieve (0 or negative means all levels, 1-100 for specific depth) ช่วง: 0 ถึง 100.
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

API README

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.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
Kalshi$0.02 ต่อการเรียกJSON
Kalshi$0.02 ต่อการเรียกJSON
Kalshi$0.02 ต่อการเรียกJSON
Kalshi$0.02 ต่อการเรียกJSON

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Kalshi Get Kalshi Market OrderBook API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/kalshi/markets-orderbook โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Kalshi Get Kalshi Market OrderBook API ราคาเท่าไร?

$0.02 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

Kalshi Get Kalshi Market OrderBook API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: ticker (string). ตัวเลือก: depth (integer). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Kalshi Get Kalshi Market OrderBook API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Kalshi ไหม?

ไม่จำเป็น Kalshi Get Kalshi Market OrderBook ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Kalshi API แยกต่างหาก