Skip to main content
GET
Reference example

Request contract

  • Method and path: GET /apis/v1/polymarket/positions
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/polymarket/positions
  • eventId: query; optional
  • includeArchived: query; optional
  • limit: query; optional
  • market: query; optional
  • mergeable: query; optional
  • offset: query; optional
  • redeemable: query; optional
  • sizeThreshold: query; optional
  • sortBy: query; optional
  • sortDirection: query; optional
  • title: query; optional
  • user: query; required
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Published reference price: $0.012 USD per successful request. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

eventId
integer[]

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

Required range: x >= 1
includeArchived
boolean
default:false

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

limit
integer
default:100
Required range: 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
default:false
offset
integer
default:0
Required range: 0 <= x <= 10000
redeemable
boolean
default:false
sizeThreshold
number
default:1
Required range: x >= 0
sortBy
enum<string>
default:TOKENS
Available options:
CURRENT,
INITIAL,
TOKENS,
CASHPNL,
PERCENTPNL,
TITLE,
RESOLVING,
PRICE,
AVGPRICE
sortDirection
enum<string>
default:DESC
Available options:
ASC,
DESC
title
string
Maximum string length: 100
user
string
required

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

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

"0x56687bf447db6ffa42ffe2204a05edaa20f55839"

Response

Success

asset
string
avgPrice
number
cashPnl
number
conditionId
string

0x-prefixed 64-hex string

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

"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}$
Example:

"0x56687bf447db6ffa42ffe2204a05edaa20f55839"

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