Skip to main content
GET
Get current positions for a user

查询参数

user
string
必填

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

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

"0x56687bf447db6ffa42ffe2204a05edaa20f55839"

market
string[]

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

0x-prefixed 64-hex string

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

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

必填范围: x >= 1
sizeThreshold
number
默认值:1
必填范围: x >= 0
redeemable
boolean
默认值:false
mergeable
boolean
默认值:false
limit
integer
默认值:100
必填范围: 0 <= x <= 500
offset
integer
默认值:0
必填范围: 0 <= x <= 10000
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

响应

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
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