Skip to content

Get Builder Trades

Fetches trade history through builder credentials. Only trades attributed to the builder’s account are returned.

GET /data/trades

Base URL: https://api.openfish.fun

Builder authentication required. All four OPENFISH_BUILDER_* headers must be present.

HeaderDescription
OPENFISH_BUILDER_API_KEYBuilder API key
OPENFISH_BUILDER_PASSPHRASEBuilder passphrase
OPENFISH_BUILDER_SIGNATUREHMAC signature for builder auth
OPENFISH_BUILDER_TIMESTAMPUNIX timestamp for builder auth

None. The response includes every trade linked to the builder.

Follows the same schema as Get Trades.

{
"limit": 100,
"next_cursor": "LT100",
"count": 1,
"data": [
{
"id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"taker_order_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"market": "0x0000...0001",
"asset_id": "0xabc123...",
"side": "BUY",
"size": "50.00",
"price": "0.50",
"fee_rate_bps": "10",
"status": "MATCHED",
"match_time": "1700000000",
"last_update": "1700000000",
"outcome": "Yes",
"bucket_index": 0,
"owner": "builder-api-key-uuid",
"maker_address": "0x1234...",
"maker_orders": [],
"transaction_hash": "",
"trader_side": "TAKER",
"maker_fee": "0",
"taker_fee": "0.0625"
}
]
}
Terminal window
curl https://api.openfish.fun/data/trades \
-H "OPENFISH_BUILDER_API_KEY: ..." \
-H "OPENFISH_BUILDER_PASSPHRASE: ..." \
-H "OPENFISH_BUILDER_SIGNATURE: ..." \
-H "OPENFISH_BUILDER_TIMESTAMP: 1700000000"