Get user earnings and markets configuration
Endpoint
Section titled “Endpoint”GET /rewards/user/marketsServer: https://api.openfish.fun
Authentication: L2 (HMAC) required
Query Parameters
Section titled “Query Parameters”| Name | Type | Default | Description |
|---|---|---|---|
date | string | today | Date filter (YYYY-MM-DD) |
sponsored | boolean | false | If true, return sponsored-only earnings |
q | string | Text search on market question | |
tag_slug | string | Filter by tag slug | |
favorite_markets | boolean | Filter to favorite markets | |
no_competition | boolean | Filter to markets with no competition | |
only_mergeable | boolean | Filter to mergeable markets | |
only_open_orders | boolean | Filter to markets with open orders | |
only_open_positions | boolean | Filter to markets with open positions | |
order_by | string | earnings | Sort field: earnings, earning_percentage, rate_per_day, max_spread, min_size, volume_24hr, spread, competitiveness, question, price |
position | string | DESC | Sort direction: ASC or DESC |
page_size | integer | 100 | Results per page (max 500) |
next_cursor | string | Pagination cursor |
Response
Section titled “Response”200 — Paginated list of user market reward entries.
{ "limit": 100, "count": 1, "next_cursor": "LTE=", "total_count": 1, "data": [ { "condition_id": "0xabc...", "question": "Will BTC exceed $100k?", "market_slug": "btc-100k", "event_slug": "bitcoin-milestones", "image": "", "rewards_max_spread": "5.0", "rewards_min_size": "10.0", "rewards_config": [...], "maker_address": "api-key-uuid", "earning_percentage": "12.5", "earnings": "150.0", "volume": "1500.0", "daily_rate": "100.0", "price": "0.65", "spread": "0.02", "volume_24hr": "50000.0" } ]}401 — Unauthorized
Section titled “401 — Unauthorized”{ "error": "invalid authorization" }