Skip to main content
GET
Get user earnings and markets configuration

授权

POLY_API_KEY
string
header
必填

Your API key

POLY_ADDRESS
string
header
必填

Ethereum address associated with the API key

POLY_SIGNATURE
string
header
必填

HMAC signature of the request

POLY_PASSPHRASE
string
header
必填

API key passphrase

POLY_TIMESTAMP
string
header
必填

Unix timestamp of the request

查询参数

date
string<date>

Date in YYYY-MM-DD format. Defaults to current date if not provided.

signature_type
enum<integer>

Signature type for address derivation (required for API KEY auth):

  • 0: EOA
  • 1: POLY_PROXY
  • 2: POLY_GNOSIS_SAFE
可用选项:
0,
1,
2
maker_address
string

Maker address to query data for

sponsored
boolean
默认值:false

If true, returns sponsored reward earnings

next_cursor
string

Pagination cursor from previous response

page_size
integer
默认值:100

Number of items per page (max 500, values above are capped)

必填范围: x <= 500
q
string

Search query to filter markets by question/description

tag_slug
string

Filter by tag slug (can be repeated for OR logic)

favorite_markets
boolean
默认值:false

If true, only show markets favorited by the user (requires auth)

no_competition
boolean
默认值:false

Filter for markets with no competition

only_mergeable
boolean
默认值:false

Filter for only mergeable markets

only_open_orders
boolean
默认值:false

Filter for markets where user has open orders

only_open_positions
boolean
默认值:false

Filter for markets where user has open positions

order_by
enum<string>

Field to sort by

可用选项:
max_spread,
min_size,
end_date,
earning_percentage,
rate_per_day,
earnings,
spread,
competitiveness,
question,
price,
market,
volume_24hr
position
enum<string>

Sort direction

可用选项:
ASC,
DESC

响应

Successfully retrieved user earnings and market configurations

Paginated list of user rewards markets

limit
integer
必填

Maximum number of items per page

count
integer
必填

Number of items in the current response

next_cursor
string
必填

Cursor for the next page. "LTE=" indicates the last page.

data
object[]
必填
total_count
integer

Total number of items across all pages