Skip to main content
GET
Get closed positions for a user

查询参数

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"

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}$
title
string

Filter by market title

Maximum string length: 100
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
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

响应

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"

avgPrice
number
totalBought
number
realizedPnl
number
curPrice
number
timestamp
integer<int64>
title
string
slug
string
icon
string
eventSlug
string
outcome
string
outcomeIndex
integer
oppositeOutcome
string
oppositeAsset
string
endDate
string