Get a live perpetual market-data snapshot
Production beta, sourced directly from the selected venue by the Market Data API.
Returns a canonical ordered book, recent trades, one-minute candles,
funding observations, and typed market state. Financial values are
exact decimal strings. Prices are direct venue prices, never 0–100
prediction probabilities. Quantities and volumes retain the declared
base_asset or contracts unit. Do not derive notional for contract
quantities without authoritative instrument metadata, and never apply
the prediction-market / 100 formula. Each request costs 6 units in
the HEAVY rate-limit bucket because it fans out to multiple venue
resources.
Responses are never cacheable by clients; the Market Data API uses a bounded
one-second replica-local cache to coalesce bursts.
curl --request GET \
--url https://md.kairos.trade/v1/perpetuals/{venue}/{instrument}/snapshot \
--header 'X-Api-Key: <api-key>' \
--header 'X-Api-Secret: <api-key>' \
--header 'X-Client-Id: <api-key>'import requests
url = "https://md.kairos.trade/v1/perpetuals/{venue}/{instrument}/snapshot"
headers = {
"X-Client-Id": "<api-key>",
"X-Api-Key": "<api-key>",
"X-Api-Secret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-Client-Id': '<api-key>',
'X-Api-Key': '<api-key>',
'X-Api-Secret': '<api-key>'
}
};
fetch('https://md.kairos.trade/v1/perpetuals/{venue}/{instrument}/snapshot', 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://md.kairos.trade/v1/perpetuals/{venue}/{instrument}/snapshot",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>",
"X-Api-Secret: <api-key>",
"X-Client-Id: <api-key>"
],
]);
$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://md.kairos.trade/v1/perpetuals/{venue}/{instrument}/snapshot"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Client-Id", "<api-key>")
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("X-Api-Secret", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://md.kairos.trade/v1/perpetuals/{venue}/{instrument}/snapshot")
.header("X-Client-Id", "<api-key>")
.header("X-Api-Key", "<api-key>")
.header("X-Api-Secret", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://md.kairos.trade/v1/perpetuals/{venue}/{instrument}/snapshot")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Client-Id"] = '<api-key>'
request["X-Api-Key"] = '<api-key>'
request["X-Api-Secret"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"venue": "hyperliquid",
"environment": "<string>",
"integration_id": "<string>",
"canonical_instrument_id": "<string>",
"venue_instrument_id": "<string>",
"instrument_context": {
"base_asset_id": "<string>",
"quote_asset_id": "<string>",
"collateral_asset_id": "<string>",
"settlement_asset_id": "<string>",
"price_unit": "<string>",
"quantity_unit": "base_asset",
"contract_multiplier": "0.001",
"notional_formula": "<string>"
},
"book": {
"bids": [
{
"price": "0.001",
"quantity": "0.001",
"order_count": 123
}
],
"asks": [
{
"price": "0.001",
"quantity": "0.001",
"order_count": 123
}
],
"event_time_ns": 123,
"received_time_ns": 123,
"source_sequence": 123,
"sequence_domain": "<string>",
"feed_mode": "snapshot_only",
"depth": 250,
"requested_depth": 250,
"source_depth_limit": 2,
"depth_limited": true,
"native_volume_unit": "base_asset"
},
"market_state": {
"event_time_ns": 123,
"status": "active",
"prices": [
{
"price_type": "<string>",
"value": "0.001",
"observed_time_ns": 123
}
],
"measures": [
{
"measure_type": "<string>",
"value": "0",
"unit": "<string>"
}
],
"next_funding_time_ns": 123
},
"trades": [
{
"trade_id": "<string>",
"price": "0.001",
"quantity": "0.001",
"quantity_unit": "base_asset",
"side": "buy",
"event_time_ns": 123
}
],
"candles": [
{
"interval": "1m",
"interval_start_ns": 123,
"interval_end_ns": 123,
"open": "0.001",
"high": "0.001",
"low": "0.001",
"close": "0.001",
"native_volume": "0",
"native_volume_unit": "base_asset",
"trade_count": 123,
"finality": "open"
}
],
"funding": [
{
"rate": "0",
"phase": "estimate",
"effective_time_ns": 123,
"calculated_time_ns": 123,
"rate_period_seconds": 123,
"payment_interval_seconds": 123,
"sign_convention": "positive_longs_pay",
"funding_price": "0.001",
"funding_price_type": "<string>"
}
],
"source": "venue_public_api",
"fetched_at_ns": 123
}{
"error": {
"code": "invalid_request",
"message": "invalid perpetual instrument"
}
}{
"error": {
"code": "unauthorized",
"message": "valid X-Client-Id, X-Api-Key, and X-Api-Secret headers are required"
}
}{
"error": {
"code": "ip_not_whitelisted",
"message": "source IP not in credential whitelist"
}
}{
"error": {
"code": "rate_limited",
"message": "rate limit exceeded"
}
}{
"error": {
"code": "internal",
"message": "authentication backend unavailable"
}
}{
"error": {
"code": "invalid_request",
"message": "market_ids exceeds maximum 200"
}
}{
"error": {
"code": "rate_limiter_unavailable",
"message": "rate limiter temporarily unavailable"
}
}Authorizations
Credential client id (kairos_ck_...). Must be sent together with X-Api-Key and X-Api-Secret.
64-char hex API key. Must be sent together with X-Client-Id and X-Api-Secret.
64-char hex API secret. Must be sent together with X-Client-Id and X-Api-Key.
Path Parameters
hyperliquid, polymarket_perps, kalshi_margin Venue-native instrument identifier, such as BTC, 6, or KXBTCPERP.
Hyperliquid support is limited to standard main-dex perps in every
environment; HIP-3 dex:coin identifiers are rejected. BTC and other
standard listings are quoted in USDT, while HYPE and PURR are
USDC-quoted exceptions. All three collateralize and settle in USDC.
Their canonical identities are hl-mainnet-btc-usdt,
hl-mainnet-hype-usdc, and hl-mainnet-purr-usdc.
Query Parameters
Requested book depth per side. When omitted the default is the venue's own ceiling —
20 for hyperliquid (its l2Book returns no more), 500 for polymarket_perps and
kalshi_margin. A value outside [1, 500], or one that is not an integer, is rejected
with 400.
1 <= x <= 500Response
Live canonical venue snapshot.
Live perpetual snapshot, in beta. Prices are direct venue prices.
Quantities retain native units. This object intentionally carries no
synthesized notional: consumers must inspect instrument_context and
must not convert contract quantities when contract_multiplier is null.
hyperliquid, polymarket_perps, kalshi_margin Venue environment for this source identity.
1Kairos integration and routing identity.
1Stable Kairos perpetual instrument identity.
1Exact venue-native instrument identifier.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Recent public trades in venue-native quantity units.
Show child attributes
Show child attributes
One-minute trade candles in venue-native volume units.
Show child attributes
Show child attributes
Final or estimated funding observations using positive_longs_pay sign convention.
Show child attributes
Show child attributes
"venue_public_api"Kairos fetch completion time in Unix nanoseconds.
Was this page helpful?
curl --request GET \
--url https://md.kairos.trade/v1/perpetuals/{venue}/{instrument}/snapshot \
--header 'X-Api-Key: <api-key>' \
--header 'X-Api-Secret: <api-key>' \
--header 'X-Client-Id: <api-key>'import requests
url = "https://md.kairos.trade/v1/perpetuals/{venue}/{instrument}/snapshot"
headers = {
"X-Client-Id": "<api-key>",
"X-Api-Key": "<api-key>",
"X-Api-Secret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-Client-Id': '<api-key>',
'X-Api-Key': '<api-key>',
'X-Api-Secret': '<api-key>'
}
};
fetch('https://md.kairos.trade/v1/perpetuals/{venue}/{instrument}/snapshot', 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://md.kairos.trade/v1/perpetuals/{venue}/{instrument}/snapshot",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>",
"X-Api-Secret: <api-key>",
"X-Client-Id: <api-key>"
],
]);
$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://md.kairos.trade/v1/perpetuals/{venue}/{instrument}/snapshot"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Client-Id", "<api-key>")
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("X-Api-Secret", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://md.kairos.trade/v1/perpetuals/{venue}/{instrument}/snapshot")
.header("X-Client-Id", "<api-key>")
.header("X-Api-Key", "<api-key>")
.header("X-Api-Secret", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://md.kairos.trade/v1/perpetuals/{venue}/{instrument}/snapshot")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Client-Id"] = '<api-key>'
request["X-Api-Key"] = '<api-key>'
request["X-Api-Secret"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"venue": "hyperliquid",
"environment": "<string>",
"integration_id": "<string>",
"canonical_instrument_id": "<string>",
"venue_instrument_id": "<string>",
"instrument_context": {
"base_asset_id": "<string>",
"quote_asset_id": "<string>",
"collateral_asset_id": "<string>",
"settlement_asset_id": "<string>",
"price_unit": "<string>",
"quantity_unit": "base_asset",
"contract_multiplier": "0.001",
"notional_formula": "<string>"
},
"book": {
"bids": [
{
"price": "0.001",
"quantity": "0.001",
"order_count": 123
}
],
"asks": [
{
"price": "0.001",
"quantity": "0.001",
"order_count": 123
}
],
"event_time_ns": 123,
"received_time_ns": 123,
"source_sequence": 123,
"sequence_domain": "<string>",
"feed_mode": "snapshot_only",
"depth": 250,
"requested_depth": 250,
"source_depth_limit": 2,
"depth_limited": true,
"native_volume_unit": "base_asset"
},
"market_state": {
"event_time_ns": 123,
"status": "active",
"prices": [
{
"price_type": "<string>",
"value": "0.001",
"observed_time_ns": 123
}
],
"measures": [
{
"measure_type": "<string>",
"value": "0",
"unit": "<string>"
}
],
"next_funding_time_ns": 123
},
"trades": [
{
"trade_id": "<string>",
"price": "0.001",
"quantity": "0.001",
"quantity_unit": "base_asset",
"side": "buy",
"event_time_ns": 123
}
],
"candles": [
{
"interval": "1m",
"interval_start_ns": 123,
"interval_end_ns": 123,
"open": "0.001",
"high": "0.001",
"low": "0.001",
"close": "0.001",
"native_volume": "0",
"native_volume_unit": "base_asset",
"trade_count": 123,
"finality": "open"
}
],
"funding": [
{
"rate": "0",
"phase": "estimate",
"effective_time_ns": 123,
"calculated_time_ns": 123,
"rate_period_seconds": 123,
"payment_interval_seconds": 123,
"sign_convention": "positive_longs_pay",
"funding_price": "0.001",
"funding_price_type": "<string>"
}
],
"source": "venue_public_api",
"fetched_at_ns": 123
}{
"error": {
"code": "invalid_request",
"message": "invalid perpetual instrument"
}
}{
"error": {
"code": "unauthorized",
"message": "valid X-Client-Id, X-Api-Key, and X-Api-Secret headers are required"
}
}{
"error": {
"code": "ip_not_whitelisted",
"message": "source IP not in credential whitelist"
}
}{
"error": {
"code": "rate_limited",
"message": "rate limit exceeded"
}
}{
"error": {
"code": "internal",
"message": "authentication backend unavailable"
}
}{
"error": {
"code": "invalid_request",
"message": "market_ids exceeds maximum 200"
}
}{
"error": {
"code": "rate_limiter_unavailable",
"message": "rate limiter temporarily unavailable"
}
}
