Skip to main content

Table Details

PropertyValue
Table Namekadena.dex.trades
Table StatusBeta; Deprecated â—½

Table Columns

Column NameData TypeDescription
chainVARCHAR(8)The kadena chain name
chain_idVARCHAR(16777216)The unique identifier for the kadena chain
projectVARCHAR(16777216)The project (decentralized exchange) of the liquidity pool that the swap occurred from.
protocolVARCHAR(16777216)DEX protocol (& version, if applicable) of the contract address facilitating the swap.
from_accountVARCHAR(16777216)The account that initiated the swap
to_accountVARCHAR(16777216)The recipient account of the swap
token_sold_addressVARCHAR(16777216)Token address of the token sold.
token_sold_nameVARCHAR(16777216)Name of the token sold.
token_sold_symbolVARCHAR(16777216)Symbol of the token sold.
token_sold_decimalsNUMBER(38,0)Token decimals of the token sold.
token_sold_amount_raw_strVARCHAR(16777216)Raw amount of tokens sold (unnormalized) in string.
token_sold_amount_rawFLOATRaw amount of tokens sold (unnormalized).
token_sold_amountVARCHAR(16777216)Amount of tokens sold in string.
usd_sold_amountFLOATAmount of token sold in USD value.
token_bought_addressVARCHAR(16777216)Token address of the token bought, i.e. the asset acquired from the trade.
token_bought_nameVARCHAR(16777216)Name of the token bought.
token_bought_symbolVARCHAR(16777216)Symbol of the token bought.
token_bought_decimalsNUMBER(38,0)Token decimals of the token bought.
token_bought_amount_raw_strVARCHAR(16777216)Raw amount of tokens bought (unnormalized) in string.
token_bought_amount_rawFLOATRaw amount of tokens bought (unnormalized).
token_bought_amountVARCHAR(16777216)Amount of tokens bought in string.
usd_bought_amountFLOATAmount of token bought in USD value.
usd_amountFLOATUSD value of the swap. This field preferentially selects the USD value of ETH and Stablecoin (USDT/USDC) tokens, as spam token prices may conflate the true swap value.
statusVARCHAR(16777216)The status of the transaction
transaction_request_keyVARCHAR(16777216)Unique identifier for the transaction request
transaction_indexNUMBER(38,0)The position of this transaction in the block that it belongs to. The first transaction has index 0.
event_indexNUMBER(38,0)The index of the event within the transaction
block_creation_timeTIMESTAMP_NTZ(9)Timestamp of the block creation
block_heightNUMBER(38,0)Block height of the swap event.
block_hashVARCHAR(16777216)Block hash of the swap event.
unique_idVARCHAR(16777216)Unique ID of each trade.
_created_atTIMESTAMP_NTZ(9)The timestamp when the record was created
_updated_atTIMESTAMP_NTZ(9)The timestamp when the record was last updated
_changed_since_full_refreshBOOLEANIndicates if the record has changed since full refresh