| Field | Type | Description |
|---|---|---|
swap_type | Enum(string) | Type of swap pair based on token roles. swap_type |
protocol | string | DEX protocol that executed the swap. Refer to Data Sources for supported protocols |
wallet | string | Wallet address that initiated the swap |
token_in | string | Token address being swapped from |
token_out | string | Token address being swapped to |
token_symbol_in | string | Symbol of the input token |
token_symbol_out | string | Symbol of the output token |
token_amount_in | number | Amount of input token swapped |
token_amount_out | number | Amount of output token received |
token_price_in | number [USD] | Price of input token at swap time |
token_price_out | number [USD] | Price of output token at swap time |
pre_token_balance_in | number | Wallet’s input token balance before the swap |
pre_token_balance_out | number | Wallet’s output token balance before the swap |
post_token_balance_in | number | Wallet’s input token balance after the swap |
post_token_balance_out | number | Wallet’s output token balance after the swap |
usd_amount_in | number [USD] | Value of input tokens |
usd_amount_out | number [USD] | Value of output tokens |
block_slot | integer | Solana block slot number |
block_time | integer [unix] | Timestamp of the block |
tx_hash | string | Transaction signature |
swap_index | integer | Index of the swap 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