Get Kalshi Market OrderBook
curl --request GET \
--url https://api.aisa.one/apis/v1/kalshi/markets/{ticker}/orderbook \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/kalshi/markets/{ticker}/orderbook"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/kalshi/markets/{ticker}/orderbook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/kalshi/markets/{ticker}/orderbook",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/kalshi/markets/{ticker}/orderbook"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/kalshi/markets/{ticker}/orderbook")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/kalshi/markets/{ticker}/orderbook")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"orderbook_fp": {
"no_dollars": [
[
"0.1500",
"100.00"
]
],
"yes_dollars": [
[
"0.1500",
"100.00"
]
]
}
}Kalshi
Get Kalshi Market OrderBook
Endpoint for getting the current order book for a specific market. The order book shows all active bid orders for both yes and no sides of a binary market. It returns yes bids and no bids only (no asks are returned). This is because in binary markets, a bid for yes at price X is equivalent to an ask for no at price (100-X). For example, a yes bid at 7¢ is the same as a no ask at 93¢, with identical contract sizes. Each side shows price levels with their corresponding quantities and order counts, organized from best to worst prices.
默认价格配置
GET
https://api.aisa.one
/
apis
/
v1
/
kalshi
/
markets
/
{ticker}
/
orderbook
Get Kalshi Market OrderBook
curl --request GET \
--url https://api.aisa.one/apis/v1/kalshi/markets/{ticker}/orderbook \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/kalshi/markets/{ticker}/orderbook"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/kalshi/markets/{ticker}/orderbook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/kalshi/markets/{ticker}/orderbook",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/kalshi/markets/{ticker}/orderbook"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/kalshi/markets/{ticker}/orderbook")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/kalshi/markets/{ticker}/orderbook")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"orderbook_fp": {
"no_dollars": [
[
"0.1500",
"100.00"
]
],
"yes_dollars": [
[
"0.1500",
"100.00"
]
]
}
}Request contract
- Method and path: GET /apis/v1/kalshi/markets/{ticker}/orderbook
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/kalshi/markets/{ticker}/orderbook - ticker: path; required
- depth: query; optional
{
"operationId": "any_kalshi_unauthorized_apis_v1_kalshi_markets_ti_7bc540",
"method": "GET",
"path": "/apis/v1/kalshi/markets/{ticker}/orderbook",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"description": "Market ticker",
"in": "path",
"name": "ticker",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "Depth of the orderbook to retrieve (0 or negative means all levels, 1-100 for specific depth)",
"in": "query",
"name": "depth",
"required": false,
"schema": {
"default": 0,
"maximum": 100,
"minimum": 0,
"type": "integer"
},
"x-oapi-codegen-extra-tags": {
"validate": "omitempty,min=0,max=100"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}