Trade History

Get all trade history

get

Retrieve all trade history for the authenticated user with detailed trade information including fees, PnL, and asset-level data

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
limitnumberOptional

Maximum number of records to return (for pagination/infinite scroll).

Example: 50
startDatestringOptional

Filter trades created on/after this time. Accepts ISO string or ms timestamp.

Example: 2024-01-01T00:00:00.000Z
endDatestringOptional

Filter trades created on/before this time. Accepts ISO string or ms timestamp.

Example: 2024-12-31T23:59:59.999Z
Responses
chevron-right
200

Trade history retrieved successfully

application/json
tradeHistoryIdstringRequired

Trade history ID

Example: trade-123
positionIdstringRequired

Associated position ID

Example: pos-123
addressstringRequired

User wallet address

Example: 0x1234...abcd
externalFeePaidnumberRequired

Total fee paid to DEX Engine

Example: 0.015
builderFeePaidnumberRequired

Total fee paid to builder

Example: 0.0075
realizedPnlnumberRequired

Total realized PnL value

Example: 0.15
realizedPnlPercentagenumberRequired

Total realized PnL percentage

Example: 0.15
totalValuenumberRequired

Total trade value in USD

Example: 20000
totalEntryValuenumberRequired

Total entry value in USD (sum of size * entry price per asset)

Example: 20000
entryRationumberRequired

Entry ratio for the trade

Example: 0.5
exitRationumberRequired

Exit ratio for the trade

Example: 0.5
positionLongAssetsstring[]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

createdAtstringRequired

Trade timestamp

Example: 2024-01-01T00:00:00.000Z
get
/trade-history

Last updated