dex.trades
model combines dex protocols indexed by Allium into a single table. This model includes core information pertaining to a swap, including token bought, sold, the account that initiated the swap (from_account
)
DEX Project coverage includes: kswap, kdlaunch.
KDSwap Exchange Trades
KDSwap Exchange Trades
This query shows recent trades from the KDSwap exchange:
Top Trades by USD Value
Top Trades by USD Value
This query shows the top 10 trades by USD value over the last 7 days:
Table Columns
_str
columns are numeric fields cast to varchar
to retain precision.
Unique Key: unique_id
Column | Description |
---|---|
chain | The kadena chain name |
chain_id | The unique identifier for the kadena chain |
project | The project (decentralized exchange) of the liquidity pool that the swap occurred from. |
protocol | DEX protocol (& version, if applicable) of the contract address facilitating the swap. |
from_account | The account that initiated the swap |
to_account | The recipient account of the swap |
token_sold_address | Token address of the token sold. |
token_sold_name | Name of the token sold. |
token_sold_symbol | Symbol of the token sold. |
token_sold_decimals | Token decimals of the token sold. |
token_sold_amount_raw_str | Raw amount of tokens sold (unnormalized) in string. |
token_sold_amount_raw | Raw amount of tokens sold (unnormalized). |
token_sold_amount | Amount of tokens sold in string. |
usd_sold_amount | Amount of token sold in USD value. |
token_bought_address | Token address of the token bought, i.e. the asset acquired from the trade. |
token_bought_name | Name of the token bought. |
token_bought_symbol | Symbol of the token bought. |
token_bought_decimals | Token decimals of the token bought. |
token_bought_amount_raw_str | Raw amount of tokens bought (unnormalized) in string. |
token_bought_amount_raw | Raw amount of tokens bought (unnormalized). |
token_bought_amount | Amount of tokens bought in string. |
usd_bought_amount | Amount of token bought in USD value. |
usd_amount | USD 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. |
status | The status of the transaction |
transaction_request_key | Unique identifier for the transaction request |
transaction_index | The position of this transaction in the block that it belongs to. The first transaction has index 0. |
event_index | The index of the event within the transaction |
block_creation_time | Timestamp of the block creation |
block_height | Block height of the swap event. |
block_hash | Block hash of the swap event. |
unique_id | Unique ID of each trade. |
_created_at | The timestamp when the record was created |
_updated_at | The timestamp when the record was last updated |
_changed_since_full_refresh | Indicates if the record has changed since full refresh |