> ## Documentation Index
> Fetch the complete documentation index at: https://docs.allium.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Trades 🌱◽

### Table Details

| Property     | Value               |
| ------------ | ------------------- |
| Table Name   | `kadena.dex.trades` |
| Table Status | Beta; Deprecated ◽  |

### Table Columns

| Column Name                     | Data Type         | Description                                                                                                                                                             |
| ------------------------------- | ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| chain                           | VARCHAR(8)        | The kadena chain name                                                                                                                                                   |
| chain\_id                       | VARCHAR(16777216) | The unique identifier for the kadena chain                                                                                                                              |
| project                         | VARCHAR(16777216) | The project (decentralized exchange) of the liquidity pool that the swap occurred from.                                                                                 |
| protocol                        | VARCHAR(16777216) | DEX protocol (& version, if applicable) of the contract address facilitating the swap.                                                                                  |
| from\_account                   | VARCHAR(16777216) | The account that initiated the swap                                                                                                                                     |
| to\_account                     | VARCHAR(16777216) | The recipient account of the swap                                                                                                                                       |
| token\_sold\_address            | VARCHAR(16777216) | Token address of the token sold.                                                                                                                                        |
| token\_sold\_name               | VARCHAR(16777216) | Name of the token sold.                                                                                                                                                 |
| token\_sold\_symbol             | VARCHAR(16777216) | Symbol of the token sold.                                                                                                                                               |
| token\_sold\_decimals           | NUMBER(38,0)      | Token decimals of the token sold.                                                                                                                                       |
| token\_sold\_amount\_raw\_str   | VARCHAR(16777216) | Raw amount of tokens sold (unnormalized) in string.                                                                                                                     |
| token\_sold\_amount\_raw        | FLOAT             | Raw amount of tokens sold (unnormalized).                                                                                                                               |
| token\_sold\_amount             | VARCHAR(16777216) | Amount of tokens sold in string.                                                                                                                                        |
| usd\_sold\_amount               | FLOAT             | Amount of token sold in USD value.                                                                                                                                      |
| token\_bought\_address          | VARCHAR(16777216) | Token address of the token bought, i.e. the asset acquired from the trade.                                                                                              |
| token\_bought\_name             | VARCHAR(16777216) | Name of the token bought.                                                                                                                                               |
| token\_bought\_symbol           | VARCHAR(16777216) | Symbol of the token bought.                                                                                                                                             |
| token\_bought\_decimals         | NUMBER(38,0)      | Token decimals of the token bought.                                                                                                                                     |
| token\_bought\_amount\_raw\_str | VARCHAR(16777216) | Raw amount of tokens bought (unnormalized) in string.                                                                                                                   |
| token\_bought\_amount\_raw      | FLOAT             | Raw amount of tokens bought (unnormalized).                                                                                                                             |
| token\_bought\_amount           | VARCHAR(16777216) | Amount of tokens bought in string.                                                                                                                                      |
| usd\_bought\_amount             | FLOAT             | Amount of token bought in USD value.                                                                                                                                    |
| usd\_amount                     | FLOAT             | 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                          | VARCHAR(16777216) | The status of the transaction                                                                                                                                           |
| transaction\_request\_key       | VARCHAR(16777216) | Unique identifier for the transaction request                                                                                                                           |
| transaction\_index              | NUMBER(38,0)      | The position of this transaction in the block that it belongs to. The first transaction has index 0.                                                                    |
| event\_index                    | NUMBER(38,0)      | The index of the event within the transaction                                                                                                                           |
| block\_creation\_time           | TIMESTAMP\_NTZ(9) | Timestamp of the block creation                                                                                                                                         |
| block\_height                   | NUMBER(38,0)      | Block height of the swap event.                                                                                                                                         |
| block\_hash                     | VARCHAR(16777216) | Block hash of the swap event.                                                                                                                                           |
| unique\_id                      | VARCHAR(16777216) | Unique ID of each trade.                                                                                                                                                |
| \_created\_at                   | TIMESTAMP\_NTZ(9) | The timestamp when the record was created                                                                                                                               |
| \_updated\_at                   | TIMESTAMP\_NTZ(9) | The timestamp when the record was last updated                                                                                                                          |
| \_changed\_since\_full\_refresh | BOOLEAN           | Indicates if the record has changed since full refresh                                                                                                                  |
