跳转到主要内容
GET
Reference example

请求规范

  • 方法与路径: GET /apis/v1/polymarket/positions
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/polymarket/positions
  • eventId: query; 可选
  • includeArchived: query; 可选
  • limit: query; 可选
  • market: query; 可选
  • mergeable: query; 可选
  • offset: query; 可选
  • redeemable: query; 可选
  • sizeThreshold: 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[]

Comma-separated list of event IDs. Mutually exclusive with market.

必填范围: x >= 1
includeArchived
boolean
默认值:false

Include positions in archived markets that are still active. Archived positions are excluded by default.

limit
integer
默认值:100
必填范围: 0 <= x <= 500
market
string[]

Comma-separated list of condition IDs. Mutually exclusive with eventId.

0x-prefixed 64-hex string

Pattern: ^0x[a-fA-F0-9]{64}$
mergeable
boolean
默认值:false
offset
integer
默认值:0
必填范围: 0 <= x <= 10000
redeemable
boolean
默认值:false
sizeThreshold
number
默认值:1
必填范围: x >= 0
sortBy
enum<string>
默认值:TOKENS
可用选项:
CURRENT,
INITIAL,
TOKENS,
CASHPNL,
PERCENTPNL,
TITLE,
RESOLVING,
PRICE,
AVGPRICE
sortDirection
enum<string>
默认值:DESC
可用选项:
ASC,
DESC
title
string
Maximum string length: 100
user
string
必填

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

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

"0x56687bf447db6ffa42ffe2204a05edaa20f55839"

响应

Success

asset
string
avgPrice
number
cashPnl
number
conditionId
string

0x-prefixed 64-hex string

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

"0xdd22472e552920b8438158ea7238bfadfa4f736aa4cee91a6b86c39ead110917"

curPrice
number
currentValue
number
endDate
string
entryFeesUsdc
number

Attributed BUY-fee component of grossInitialValue, at six-decimal source precision. SELL fees are exit costs and are never included. Returned as an explicit 0 when the fee component is zero. Optional: treat an omitted field as unavailable rather than as zero.

eventSlug
string
grossInitialValue
number

Remaining entry basis including attributed BUY fees, at six-decimal source precision. initialValue and avgPrice keep their fee-exclusive semantics, so the fee-exclusive basis is grossInitialValue - entryFeesUsdc. Optional: treat an omitted field as unavailable rather than as zero.

icon
string
initialValue
number
mergeable
boolean
negativeRisk
boolean
oppositeAsset
string
oppositeOutcome
string
outcome
string
outcomeIndex
integer
percentPnl
number
percentRealizedPnl
number
proxyWallet
string

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

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

"0x56687bf447db6ffa42ffe2204a05edaa20f55839"

realizedPnl
number
redeemable
boolean
size
number
slug
string
title
string
totalBought
number