Skip to main content
GET
Get current positions for a user

授权

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

proxyWallet
string

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

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

"0x56687bf447db6ffa42ffe2204a05edaa20f55839"

asset
string
conditionId
string

0x-prefixed 64-hex string

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

"0xdd22472e552920b8438158ea7238bfadfa4f736aa4cee91a6b86c39ead110917"

size
number
avgPrice
number
initialValue
number
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.

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.

currentValue
number
cashPnl
number
percentPnl
number
totalBought
number
realizedPnl
number
percentRealizedPnl
number
curPrice
number
redeemable
boolean
mergeable
boolean
title
string
slug
string
icon
string
eventSlug
string
outcome
string
outcomeIndex
integer
oppositeOutcome
string
oppositeAsset
string
endDate
string
negativeRisk
boolean