跳转到主要内容
GET
Reference example

请求规范

  • 方法与路径: GET /apis/v1/polymarket/closed-positions
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/polymarket/closed-positions
  • eventId: query; 可选
  • limit: query; 可选
  • market: query; 可选
  • offset: query; 可选
  • sortBy: query; 可选
  • sortDirection: query; 可选
  • title: query; 可选
  • user: query; 必填
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

公开参考价格:每次成功请求 $0.012 USD。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

查询参数

eventId
integer[]

The event id of the event in question. Supports multiple csv separated values. Returns positions for all markets for those event ids. Cannot be used with the market param.

必填范围: x >= 1
limit
integer
默认值:10

The max number of positions to return

必填范围: 0 <= x <= 50
market
string[]

The conditionId of the market in question. Supports multiple csv separated values. Cannot be used with the eventId param.

0x-prefixed 64-hex string

Pattern: ^0x[a-fA-F0-9]{64}$
offset
integer
默认值:0

The starting index for pagination

必填范围: 0 <= x <= 100000
sortBy
enum<string>
默认值:REALIZEDPNL

The sort criteria

可用选项:
REALIZEDPNL,
TITLE,
PRICE,
AVGPRICE,
TIMESTAMP
sortDirection
enum<string>
默认值:DESC

The sort direction

可用选项:
ASC,
DESC
title
string

Filter by market title

Maximum string length: 100
user
string
必填

The address of the user in question User Profile Address (0x-prefixed, 40 hex chars)

Pattern: ^0x[a-fA-F0-9]{40}$
示例:

"0x56687bf447db6ffa42ffe2204a05edaa20f55839"

响应

Success

asset
string
avgPrice
number
conditionId
string

0x-prefixed 64-hex string

Pattern: ^0x[a-fA-F0-9]{64}$
示例:

"0xdd22472e552920b8438158ea7238bfadfa4f736aa4cee91a6b86c39ead110917"

curPrice
number
endDate
string
eventSlug
string
icon
string
oppositeAsset
string
oppositeOutcome
string
outcome
string
outcomeIndex
integer
proxyWallet
string

User Profile Address (0x-prefixed, 40 hex chars)

Pattern: ^0x[a-fA-F0-9]{40}$
示例:

"0x56687bf447db6ffa42ffe2204a05edaa20f55839"

realizedPnl
number
slug
string
timestamp
integer<int64>
title
string
totalBought
number