GET /official/margin/trades

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/kalshi/official/margin/tradesCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Public perpetual market trades.

Parameters

nameintypedescription
tickerquerystroptionalPerps market ticker
example: KXBCHPERP
limitqueryintoptionalPage size (1-1000)
default: 10
example: 5

Response

type: object
data key: trades
cursor key: cursor
pagination: cursor
sample: {
  "cursor": "str",
  "trades": "array[5]"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/kalshi/official/margin/trades?ticker=KXBCHPERP&limit=5"