Trade History
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
limitnumberOptionalExample:
Maximum number of records to return (for pagination/infinite scroll).
50startDatestringOptionalExample:
Filter trades created on/after this time. Accepts ISO string or ms timestamp.
2024-01-01T00:00:00.000ZendDatestringOptionalExample:
Filter trades created on/before this time. Accepts ISO string or ms timestamp.
2024-12-31T23:59:59.999ZResponses
200
Trade history retrieved successfully
application/json
tradeHistoryIdstringRequiredExample:
Trade history ID
trade-123positionIdstringRequiredExample:
Associated position ID
pos-123addressstringRequiredExample:
User wallet address
0x1234...abcdexternalFeePaidnumberRequiredExample:
Total fee paid to DEX Engine
0.015builderFeePaidnumberRequiredExample:
Total fee paid to builder
0.0075realizedPnlnumberRequiredExample:
Total realized PnL value
0.15realizedPnlPercentagenumberRequiredExample:
Total realized PnL percentage
0.15totalValuenumberRequiredExample:
Total trade value in USD
20000totalEntryValuenumberRequiredExample:
Total entry value in USD (sum of size * entry price per asset)
20000entryRationumberRequiredExample:
Entry ratio for the trade
0.5exitRationumberRequiredExample:
Exit ratio for the trade
0.5positionLongAssetsstring[]Optional
List of long token symbols from position at time of trade
positionShortAssetsstring[]Optional
List of short token symbols from position at time of trade
createdAtstringRequiredExample:
Trade timestamp
2024-01-01T00:00:00.000Z404
No trade history found
get
/trade-historyLast updated