| Field | Type | Description |
|---|---|---|
protocol | string | DEX protocol that executed the trade. Refer to Data Sources for supported protocols |
swap_type | Enum(string) | Type of underlying swap pair based on token roles. swap_type |
wallet | string | Wallet address that executed the trade |
token | string | Traded token address |
quote | string | Quote token address |
position | string | Unique position identifier |
direction | Enum(string) | Direction of the trade. direction |
position_state | Enum(string) | Position state of the trade. position_state |
token_amount | number | Amount of traded token |
quote_amount | number | Amount of quote tokens |
native_amount | number [SOL] | Native amount |
usd_amount | number [USD] | Value of the trade |
pre_token_balance | number | Traded token balance before the trade |
post_token_balance | number | Traded token balance after the trade |
token_symbol | string | Symbol of the traded token |
quote_symbol | string | Symbol of the quote token |
token_price | number [USD] | Price of traded token at trade time |
quote_price | number [USD] | Price of quote token at trade time |
block_slot | integer | Solana block slot number |
block_time | integer [unix] | Timestamp of the block |
tx_hash | string | Transaction signature |
trade_index | integer | Index of the trade within the transaction |
Enums
Swap Type
quote_token: Quote (sell) to token (buy) swaptoken_quote: Token (sell) to quote (buy) swaptoken_token: Token (sell) to token (buy) swapquote_quote: Quote (sell) to quote (buy) swap
Direction
buy: Trader bought a token.sell: Trader sold a token.
Position State
open: Trader opened a position.close: Trader closed a position.trade: Trader executed a trade against a position.