Skip to content

Get user earnings and markets configuration

GET /rewards/user/markets

Server: https://api.openfish.fun

Authentication: L2 (HMAC) required


NameTypeDefaultDescription
datestringtodayDate filter (YYYY-MM-DD)
sponsoredbooleanfalseIf true, return sponsored-only earnings
qstringText search on market question
tag_slugstringFilter by tag slug
favorite_marketsbooleanFilter to favorite markets
no_competitionbooleanFilter to markets with no competition
only_mergeablebooleanFilter to mergeable markets
only_open_ordersbooleanFilter to markets with open orders
only_open_positionsbooleanFilter to markets with open positions
order_bystringearningsSort field: earnings, earning_percentage, rate_per_day, max_spread, min_size, volume_24hr, spread, competitiveness, question, price
positionstringDESCSort direction: ASC or DESC
page_sizeinteger100Results per page (max 500)
next_cursorstringPagination cursor

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"
}
]
}
{ "error": "invalid authorization" }