Skip to main content
GET
/
v1
/
trades
/
fetch_trades
Fetch trades
curl --request GET \
  --url https://github.com/openpx-trade/openpx/v1/trades/fetch_trades
{
  "trades": [
    {
      "exchange_ts": "2023-11-07T05:31:56Z",
      "id": "<string>",
      "openpx_ts": "2023-11-07T05:31:56Z",
      "price": 123,
      "size": 123,
      "aggressor_side": "<string>",
      "no_price": 123,
      "outcome": "<string>",
      "taker_address": "<string>",
      "yes_price": 123
    }
  ],
  "cursor": "<string>"
}
Fetch a paginated tape of recent public trades for one market.

Query Parameters

asset_id
string
required

Market identifier — Kalshi market ticker or Polymarket Gamma slug (e.g. "KXBTCD-25APR1517").

cursor
string | null

Opaque cursor returned by a prior page (e.g. "eyJvIjoxMDB9").

end_ts
integer<int64> | null

Inclusive upper bound, unix seconds (e.g. 1714608000).

limit
integer<uint> | null

Max trades to return; capped at 1000 (Kalshi) / 500 (Polymarket) (e.g. 100).

Required range: x >= 0
start_ts
integer<int64> | null

Inclusive lower bound, unix seconds (e.g. 1714521600).

Response

Success.

One page of MarketTrade results. cursor is null on the last page; otherwise pass it back in the next request to continue.

trades
MarketTrade · object[]
required
cursor
string | null