Get Market Price
curl --request GET \
--url https://api.aisa.one/apis/v1/kalshi/markets/{ticker} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/kalshi/markets/{ticker}"
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}', 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}",
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}"
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}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/kalshi/markets/{ticker}")
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{
"market": {
"can_close_early": true,
"close_time": "2023-11-07T05:31:56Z",
"created_time": "2023-11-07T05:31:56Z",
"event_ticker": "<string>",
"expiration_value": "<string>",
"last_price_dollars": "0.5600",
"latest_expiration_time": "2023-11-07T05:31:56Z",
"market_type": "binary",
"no_ask_dollars": "0.5600",
"no_bid_dollars": "0.5600",
"no_sub_title": "<string>",
"notional_value_dollars": "0.5600",
"open_interest_fp": "10.00",
"open_time": "2023-11-07T05:31:56Z",
"previous_price_dollars": "0.5600",
"previous_yes_ask_dollars": "0.5600",
"previous_yes_bid_dollars": "0.5600",
"price_level_structure": "<string>",
"price_ranges": [
{
"end": "<string>",
"start": "<string>",
"step": "<string>"
}
],
"result": "yes",
"rules_primary": "<string>",
"rules_secondary": "<string>",
"settlement_bounds_type": "default",
"settlement_timer_seconds": 123,
"status": "initialized",
"ticker": "<string>",
"updated_time": "2023-11-07T05:31:56Z",
"volume_24h_fp": "10.00",
"volume_fp": "10.00",
"yes_ask_dollars": "0.5600",
"yes_ask_size_fp": "10.00",
"yes_bid_dollars": "0.5600",
"yes_bid_size_fp": "10.00",
"yes_sub_title": "<string>",
"cap_strike": 123,
"custom_strike": {},
"early_close_condition": "<string>",
"exchange_index": 0,
"expected_expiration_time": "2023-11-07T05:31:56Z",
"expiration_time": "2023-11-07T05:31:56Z",
"fee_waiver_expiration_time": "2023-11-07T05:31:56Z",
"floor_strike": 123,
"functional_strike": "<string>",
"is_provisional": true,
"mve_collection_ticker": "<string>",
"mve_selected_legs": [
{
"event_ticker": "<string>",
"market_ticker": "<string>",
"side": "<string>",
"yes_settlement_value_dollars": "0.5600"
}
],
"occurrence_datetime": "2023-11-07T05:31:56Z",
"primary_participant_key": "<string>",
"settlement_floor_dollars": "0.5600",
"settlement_ts": "2023-11-07T05:31:56Z",
"settlement_value_dollars": "0.5600",
"strike_type": "greater",
"subtitle": "<string>",
"title": "<string>"
}
}Kalshi
Get Market Price
默认价格配置
<!-- aisa-pricing:start -->
Published reference price: $0.02 USD per successful request. Account-specific pricing and final settlement may differ.
<!-- aisa-pricing:end -->
GET
https://api.aisa.one
/
apis
/
v1
/
kalshi
/
markets
/
{ticker}
Get Market Price
curl --request GET \
--url https://api.aisa.one/apis/v1/kalshi/markets/{ticker} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/kalshi/markets/{ticker}"
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}', 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}",
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}"
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}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/kalshi/markets/{ticker}")
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{
"market": {
"can_close_early": true,
"close_time": "2023-11-07T05:31:56Z",
"created_time": "2023-11-07T05:31:56Z",
"event_ticker": "<string>",
"expiration_value": "<string>",
"last_price_dollars": "0.5600",
"latest_expiration_time": "2023-11-07T05:31:56Z",
"market_type": "binary",
"no_ask_dollars": "0.5600",
"no_bid_dollars": "0.5600",
"no_sub_title": "<string>",
"notional_value_dollars": "0.5600",
"open_interest_fp": "10.00",
"open_time": "2023-11-07T05:31:56Z",
"previous_price_dollars": "0.5600",
"previous_yes_ask_dollars": "0.5600",
"previous_yes_bid_dollars": "0.5600",
"price_level_structure": "<string>",
"price_ranges": [
{
"end": "<string>",
"start": "<string>",
"step": "<string>"
}
],
"result": "yes",
"rules_primary": "<string>",
"rules_secondary": "<string>",
"settlement_bounds_type": "default",
"settlement_timer_seconds": 123,
"status": "initialized",
"ticker": "<string>",
"updated_time": "2023-11-07T05:31:56Z",
"volume_24h_fp": "10.00",
"volume_fp": "10.00",
"yes_ask_dollars": "0.5600",
"yes_ask_size_fp": "10.00",
"yes_bid_dollars": "0.5600",
"yes_bid_size_fp": "10.00",
"yes_sub_title": "<string>",
"cap_strike": 123,
"custom_strike": {},
"early_close_condition": "<string>",
"exchange_index": 0,
"expected_expiration_time": "2023-11-07T05:31:56Z",
"expiration_time": "2023-11-07T05:31:56Z",
"fee_waiver_expiration_time": "2023-11-07T05:31:56Z",
"floor_strike": 123,
"functional_strike": "<string>",
"is_provisional": true,
"mve_collection_ticker": "<string>",
"mve_selected_legs": [
{
"event_ticker": "<string>",
"market_ticker": "<string>",
"side": "<string>",
"yes_settlement_value_dollars": "0.5600"
}
],
"occurrence_datetime": "2023-11-07T05:31:56Z",
"primary_participant_key": "<string>",
"settlement_floor_dollars": "0.5600",
"settlement_ts": "2023-11-07T05:31:56Z",
"settlement_value_dollars": "0.5600",
"strike_type": "greater",
"subtitle": "<string>",
"title": "<string>"
}
}Request contract
- Method and path: GET /apis/v1/kalshi/markets/{ticker}
- Availability: enabled
- Request URL template: https://api.aisa.one/apis/v1/kalshi/markets/{ticker}
- ticker: path; required
- Runtime facts: 1cb9c86abd2764bf5fd2b2807cd6239713dcf291769a3199c126757c53c845aa
{
"operationId": "any_kalshi_unauthorized_apis_v1_kalshi_markets_ticker",
"method": "GET",
"path": "/apis/v1/kalshi/markets/{ticker}",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"description": "Market ticker",
"in": "path",
"name": "ticker",
"required": true,
"schema": {
"type": "string"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"x-aisa-pricing": {
"cost_contract": "fixed_success",
"customer_pricing": "fixed_success",
"default_request_estimate_usd": 0.02,
"estimate_source": "profile_seed",
"evidence_source": "request_snapshot"
},
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Published reference price: $0.02 USD per successful request. Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.- Default request reference estimate (USD): 0.02
- Cost contract: fixed_success
- Settlement evidence source: request_snapshot