v1

latestOpenAPI 3.0.02026-07-23173737.9 KB
Trade History

Get all trade history

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

get/trade-history

Query parameters

limitnumber

Maximum number of records to return (maximum 100).

startDatestring

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

endDatestring

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

Response

Trade history retrieved successfully

tradeHistoryIdstring required

Trade history ID

positionIdstring required

Associated position ID

addressstring required

User wallet address

externalFeePaidnumber required

Total fee paid to DEX Engine

builderFeePaidnumber required

Total fee paid to builder

realizedPnlnumber required

Total realized PnL value

realizedPnlPercentagenumber required

Total realized PnL percentage

totalValuenumber required

Total trade value in USD

totalEntryValuenumber required

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

entryRationumber required

Entry ratio for the trade

exitRationumber required

Exit ratio for the trade

positionLongAssetsstring[]

List of long token symbols from position at time of trade

positionShortAssetsstring[]

List of short token symbols from position at time of trade

createdAtstring required

Trade timestamp