Skip to content

Get User Orders

Returns a paginated list of orders belonging to the authenticated user, with optional filters by market or asset.

GET /data/orders

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

L2 authentication required (user or builder headers).

ParameterTypeRequiredDescription
idstringNoOrder ID to filter by
marketstringNoCondition ID to filter orders by market
asset_idstringNoToken ID to filter orders by asset
next_cursorstringNoCursor for pagination
{
"limit": 100,
"next_cursor": "LT100",
"count": 2,
"data": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "LIVE",
"owner": "api-key-uuid",
"maker_address": "0x1234567890123456789012345678901234567890",
"market": "0x0000...0001",
"asset_id": "0xabc123...",
"side": "BUY",
"original_size": "100.00",
"size_matched": "0",
"price": "0.50",
"outcome": "Yes",
"expiration": "1735689600",
"order_type": "GTC",
"associate_trades": ["c3d4e5f6-a7b8-9012-cdef-123456789012"],
"created_at": 1700000000
}
]
}
FieldTypeDescription
idstringOrder UUID
statusstringLIVE, MATCHED, CANCELED
ownerstringAPI key UUID that owns this order
maker_addressstringEthereum address of the maker
marketstringCondition ID
asset_idstringToken ID
sidestringBUY or SELL
original_sizestringSize at the time of submission
size_matchedstringCumulative filled size
pricestringLimit price
outcomestringMarket outcome label (Yes/No)
expirationstringUNIX timestamp after which the order expires
order_typestringGTC, FOK, GTD, FAK
associate_tradesarrayTrade IDs linked to this order (sourced from the database)
created_atintegerUNIX timestamp when the order was created
Terminal window
curl https://api.openfish.fun/data/orders \
-H "OPENFISH_ADDRESS: 0x..." \
-H "OPENFISH_SIGNATURE: ..." \
-H "OPENFISH_TIMESTAMP: 1700000000" \
-H "OPENFISH_API_KEY: ..." \
-H "OPENFISH_PASSPHRASE: ..."