Token Swap Model

The Token Swap Model represents a single token transfer. The Token Swap Model follows the following structure:

NameDescriptionType
pair_contract_addressContract address of the token pair, if applicable.string
from_tokenContract address of the token swapped from.string
to_tokenContract address of the token swapped to.string
block_numberThe block number at which the swap occurred.integer
log_indexThe log index at which the swap occurred.integer
transaction_hashThe transaction hash at which the swap occurred.string
timestampThe timestamp of the swap (in ISO-8601 format).date-time
confirmedWhether the swap is confirmed (i.e 10 blocks have been mined since the swap occurred).boolean
exchange_nameThe name of the exchange that hosted the token swap.string
contract_versionThe version of the exchange contract that hosted the token swap.string
amount_inThe amount of tokens the swapper put into the swap.integer
amount_outThe amount of tokens that the swapper recieved from the swapinteger
effective_priceThe effective price of to_token denominated in from_token (amount_out / amount_in).number
senderThe address of the sender (may be a router contract address).string
originThe address of the originator of the swap transaction.string