Skip to main content
GET
/
profile
/
trades
Get user trade history
curl --request GET \
  --url https://api.polyrouter.io/functions/v1/profile/trades \
  --header 'X-API-Key: <api-key>'
{
  "success": true,
  "data": {
    "trades": [
      {
        "platform": "kalshi",
        "trade_id": "<string>",
        "user_id": "<string>",
        "market_id": "<string>",
        "ticker": "<string>",
        "title": "<string>",
        "side": "buy",
        "outcome": "<string>",
        "price": 123,
        "size": 123,
        "timestamp": "2023-11-07T05:31:56Z",
        "transaction_hash": "<string>",
        "metadata": {}
      }
    ],
    "pagination": {
      "total": 123,
      "limit": 123,
      "has_more": true,
      "next_cursor": "<string>"
    },
    "meta": {
      "request_time": 123,
      "cache_hit": true,
      "data_freshness": "2023-11-07T05:31:56Z"
    }
  },
  "meta": {
    "request_time": 123,
    "cache_hit": true,
    "data_freshness": "2023-11-07T05:31:56Z"
  }
}

Authorizations

X-API-Key
string
header
required

API key for authentication

Query Parameters

platform
enum<string>
required

Platform identifier

Available options:
kalshi,
polymarket
user
string
required

User identifier (nickname for Kalshi, address for Polymarket)

limit
integer
default:50

Number of trades to return (1-100)

Required range: 1 <= x <= 100
cursor
string

Pagination cursor for next page

Response

Trade history retrieved successfully

success
boolean
data
object
meta
object