Get Trader Market Participation History

Queries resolved and active prediction market positions, PnL per market, and execution records
GET/v2/traders/{address}/markets

请求参数

该接口所需的请求头与参数规范。

请求头
请求头类型必填说明
X-PolyEdge-Keystring必填PolyEdge API Key for client authentication and rate-limiting
路径参数
参数类型必填说明
addressstring必填EVM address (0x...)
查询参数
参数类型默认值说明
limit
integer20
Page limit (1-100)
offset
integer0
Pagination offset
tag
string-
Market category tag filter
series
string-
Market series filter
status
stringall
Filter by market resolution status: 'active', 'resolved', or 'all' (default: 'all')
可选值:activeresolvedall
include_orders
booleanfalse
Include individual fill orders for each market

响应 (200 OK)

成功响应载荷的字段定义。

application/json
200 响应示例
json
{
  "history": [
    {
      "last_trade_at": "2026-09-29T08:59:42Z",
      "market": {
        "icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/wta-logo-41f331bdf1.png",
        "id": 5023458,
        "outcomes": [
          "Amelia Rajecki",
          "Yuhan Wang"
        ],
        "question": "Jingshan: Amelia Rajecki vs Yuhan Wang",
        "resolved_at": null,
        "result": -2,
        "series_slug": "wta",
        "slug": "wta-rajecki-yuhanwa-2026-09-28"
      },
      "orders": [
        {
          "fee": 0,
          "is_taker": false,
          "outcome": "Yuhan Wang",
          "shares": 41476492,
          "side": "BUY",
          "time": "2026-09-29T08:09:54Z",
          "usdc": 17834892
        },
        {
          "fee": 0,
          "is_taker": false,
          "outcome": "Yuhan Wang",
          "shares": 5613334827,
          "side": "BUY",
          "time": "2026-09-29T08:59:18Z",
          "usdc": 2357600628
        }
      ],
      "pnl": 0,
      "roi": 0,
      "volume": 2375435520
    },
    {
      "last_trade_at": "2026-09-29T08:59:03Z",
      "market": {
        "icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/atp-tour-b4390c4fb8.jpg",
        "id": 5041267,
        "outcomes": [
          "Bernard Tomic",
          "Fajing Sun"
        ],
        "question": "Jingshan: Bernard Tomic vs Fajing Sun",
        "resolved_at": null,
        "result": -2,
        "series_slug": "atp",
        "slug": "atp-tomic-su-2026-09-28"
      },
      "orders": [
        {
          "fee": 0,
          "is_taker": false,
          "outcome": "Bernard Tomic",
          "shares": 442392858,
          "side": "BUY",
          "time": "2026-09-29T08:34:05Z",
          "usdc": 318522858
        },
        {
          "fee": 0,
          "is_taker": false,
          "outcome": "Bernard Tomic",
          "shares": 992350345,
          "side": "BUY",
          "time": "2026-09-29T08:36:12Z",
          "usdc": 704568745
        },
        {
          "fee": 0,
          "is_taker": false,
          "outcome": "Fajing Sun",
          "shares": 2816900,
          "side": "BUY",
          "time": "2026-09-29T08:59:03Z",
          "usdc": 816901
        }
      ],
      "pnl": -8685,
      "roi": -0.4323726380057789,
      "volume": 1023908504
    }
  ],
  "total_count": 90529
}
响应体字段
字段类型说明
history
array of objectsPaginated list of market settlement details
├─last_trade_at
stringISO 8601 UTC timestamp of the trader's last trade in this market
├─market
object-
├─icon
stringMarket thumbnail image URL
├─id
integerUnique numeric prediction market identifier
├─outcomes
string[]Raw JSON array of outcome display names, e.g. ["Yes", "No"]
├─question
stringFull title question describing the market condition
├─resolved_at
stringTimestamp when market officially settled (RFC 3339 UTC), or null if active
├─result
integerResolution outcome (-2: unresolved, -1: void/invalid, 0-100: payout percentage for Outcome 0, e.g. 100 = Outcome 0 won, 0 = Outcome 1 won, 50 = 50/50 split)
├─series_slug
stringURL slug of the recurring sports league or tournament series
├─slug
stringURL-friendly slug identifying the market on Polymarket
├─orders
array of objectsDetailed order fill events (present only when include_orders=true)
├─fee
integerProtocol trading fee deducted in micro-USD (6 decimals)
├─is_taker
booleanTrue if executed against resting book liquidity as a taker
├─outcome
stringPrediction outcome label (e.g. "Yes", "No")
├─shares
integerFilled outcome token shares (6 decimals)
├─side
stringOrder execution side: "BUY" or "SELL"
├─time
stringISO 8601 UTC timestamp of order fill execution
├─usdc
integerTotal collateral USDC transferred (6 decimals micro-USD)
├─pnl
integerRealized net PnL in micro-USD (6 decimals)
├─roi
numberReturn on investment percentage in this market
├─volume
integerTotal traded volume in this market in micro-USD (6 decimals)
total_count
integerTotal count of matching market positions for pagination

cURL 示例

在终端中直接复制并运行此命令测试该接口。

cURL: GET /v2/traders/{address}/markets
bash
curl -X GET "https://api.polyedge.dev/v2/traders/0x2005d16a84ceefa912d4e380cd32e7ff827875ea/markets?limit=20&offset=0&status=all&include_orders=true" \
  -H "X-PolyEdge-Key: Your-PolyEdge-ApiKey"