Skip to content

Get trades

GET /trades

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

Tags: Core

Provides trade history, filterable by wallet, market, or event. By default only the taker side of each trade is included.


NameInTypeDefaultDescription
userquerystringUser wallet address
marketquerystringComma-separated condition IDs
eventIdquerystringComma-separated event IDs (mutually exclusive with market)
limitqueryinteger100Max results (max 10000)
offsetqueryinteger0Pagination offset
takerOnlyquerybooleantrueOnly include taker-side trades
sidequerystringFilter by side. One of: BUY, SELL
filterTypequerystringTrade size filter type. One of: CASH, TOKENS. Must be used with filterAmount.
filterAmountquerynumberMinimum trade size. Must be used with filterType.

200 — A JSON array of Trade objects.

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

Terminal window
curl "https://data.openfish.fun/trades?user=0xabc123...&side=BUY&limit=50"