Get activity
Endpoint
Section titled “Endpoint”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.
Parameters
Section titled “Parameters”| Name | In | Type | Default | Description |
|---|---|---|---|---|
user | query | string | Required. User wallet address | |
market | query | string | Condition ID filter | |
eventId | query | string | Comma-separated event IDs | |
type | query | string | Comma-separated activity types: TRADE, SPLIT, MERGE, REDEEM, REWARD, CONVERSION, MAKER_REBATE, REFERRAL_REWARD | |
limit | query | integer | 100 | Max results (max 500) |
offset | query | integer | 0 | Pagination offset |
start | query | integer | Unix timestamp lower bound | |
end | query | integer | Unix timestamp upper bound | |
sortBy | query | string | TIMESTAMP | Sort field. One of: TIMESTAMP, TOKENS, CASH |
sortDirection | query | string | DESC | Sort direction. One of: ASC, DESC |
side | query | string | Filter trade side: BUY, SELL |
Response
Section titled “Response”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" }]Example
Section titled “Example”curl "https://data.openfish.fun/activity?user=0xabc123...&type=TRADE,REDEEM&limit=20"