Get Builder Trades
Fetches trade history through builder credentials. Only trades attributed to the builder’s account are returned.
Endpoint
Section titled “Endpoint”GET /data/trades
Base URL: https://api.openfish.fun
Authentication
Section titled “Authentication”Builder authentication required. All four OPENFISH_BUILDER_* headers must be present.
| Header | Description |
|---|---|
OPENFISH_BUILDER_API_KEY | Builder API key |
OPENFISH_BUILDER_PASSPHRASE | Builder passphrase |
OPENFISH_BUILDER_SIGNATURE | HMAC signature for builder auth |
OPENFISH_BUILDER_TIMESTAMP | UNIX timestamp for builder auth |
Parameters
Section titled “Parameters”None. The response includes every trade linked to the builder.
Response
Section titled “Response”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" } ]}Example
Section titled “Example”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"