Skip to main content
GET
Get positions for a market

查询参数

market
string
必填

The condition ID of the market to query positions for 0x-prefixed 64-hex string

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

"0xdd22472e552920b8438158ea7238bfadfa4f736aa4cee91a6b86c39ead110917"

user
string

Filter to a single user by proxy wallet address User Profile Address (0x-prefixed, 40 hex chars)

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

"0x56687bf447db6ffa42ffe2204a05edaa20f55839"

status
enum<string>
默认值:ALL

Filter positions by status.

  • OPEN — Only positions with size > 0.01
  • CLOSED — Only positions with size <= 0.01
  • ALL — All positions regardless of size
可用选项:
OPEN,
CLOSED,
ALL
sortBy
enum<string>
默认值:TOTAL_PNL

Sort positions by:

  • TOKENS — Position size (number of tokens)
  • CASH_PNL — Unrealized cash PnL
  • REALIZED_PNL — Realized PnL
  • TOTAL_PNL — Total PnL (cash_pnl + realized_pnl)
可用选项:
TOKENS,
CASH_PNL,
REALIZED_PNL,
TOTAL_PNL
sortDirection
enum<string>
默认值:DESC
可用选项:
ASC,
DESC
limit
integer
默认值:50

Max number of positions to return per outcome token

必填范围: 0 <= x <= 500
offset
integer
默认值:0

Pagination offset per outcome token

必填范围: 0 <= x <= 10000

响应

Success

token
string

The outcome token asset ID

positions
object[]