Skip to content

Get activity

GET /activity

Server: https://data.openfish.fun (port 3003)

Tags: Core

Delivers a consolidated activity feed for a wallet, merging trades, splits, merges, redemptions, and reward events into a single chronological stream.


NameInTypeDefaultDescription
userquerystringRequired. User wallet address
marketquerystringCondition ID filter
eventIdquerystringComma-separated event IDs
typequerystringComma-separated activity types: TRADE, SPLIT, MERGE, REDEEM, REWARD, CONVERSION, MAKER_REBATE, REFERRAL_REWARD
limitqueryinteger100Max results (max 500)
offsetqueryinteger0Pagination offset
startqueryintegerUnix timestamp lower bound
endqueryintegerUnix timestamp upper bound
sortByquerystringTIMESTAMPSort field. One of: TIMESTAMP, TOKENS, CASH
sortDirectionquerystringDESCSort direction. One of: ASC, DESC
sidequerystringFilter trade side: BUY, SELL

200 — A JSON array of Activity objects.

[
{
"proxyWallet": "0xabc...",
"timestamp": 1700000000,
"conditionId": "0xdef...",
"type": "TRADE",
"size": "50.0",
"usdcSize": "32.50",
"transactionHash": "0x123...",
"price": "0.65",
"asset": "token123",
"side": "BUY",
"outcomeIndex": 0,
"title": "Will BTC exceed $100k?",
"slug": "will-btc-exceed-100k",
"icon": "https://...",
"eventSlug": "bitcoin-milestones",
"outcome": "Yes"
}
]

Terminal window
curl "https://data.openfish.fun/activity?user=0xabc123...&type=TRADE,REDEEM&limit=20"