Skip to main content
[FeeLedgerEntry!]!
The fee entries of this swap. When a transaction has more than 32, entries of the same kind and token are merged into one, and if that is still more than 32, the smallest OTHER_TRANSFER entries are left out: see ENTRIES_MERGED in gaps. An entry that counts toward totals is never left out. See FeeLedgerEntry
Int!
How many swaps in this transaction share its TRANSACTION entries. 1 when the transaction has one swap.
[FeeLedgerGap!]!
What this ledger could not measure. Empty when nothing is known to be missing. Read it before treating the ledger as complete: every gap except ENTRIES_MERGED and TRADER_UNKNOWN means a cost is missing, so totalFeesUsd and feeToVolumeRatio are then lower bounds, not the whole cost. See FeeLedgerGap
String!
The sum of swapShareUsd over entries where inTotalFees is true: what this swap added to its pair’s totalFees when it was indexed. Entries with no USD value add nothing, so this is a lower bound when any such entry has a null swapShareUsd. It is also a lower bound when gaps names a missing cost, e.g. UNINDEXED_TRADE. Rounded to 12 decimal places from the exact sum, so it can differ from the sum of the rounded swapShareUsd values by less than 0.00000000001.
String
What this swap actually cost as a fraction of its size: totalFeesUsd divided by the swap’s volume in USD (0.01 means 1%), rounded to 12 decimal places. The same measure as feeToVolumeRatio on bars, for one swap. It covers every entry in the total (gas, tips, app and router fees, token tax, net of rebates), where poolFeeBps is only the venue’s posted rate. A lower bound whenever totalFeesUsd is one: see gaps. Null when the swap’s volume is zero or has no USD value, or when no entry in the total has a USD value.

Used By

Returned by
Last modified on December 2, 2026