> ## 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

The DEX trades table contains successful swaps made on decentralized exchanges (DEX), consolidated into a single table.

### Table Details

| Property | Value |
| - | - |
| Table Name | `sui.dex.trades` |
| Table Status | Production-Ready |
| Unique Key | `checkpoint_timestamp`, `unique_id` |
| Clustering Key(s) | `checkpoint_timestamp::date` |
| Search Optimization | `checkpoint_digest`, `project`, `sender_address` |

### Coverage:

Currently, we support 9 DEX protocols and over 25+ DEX projects on Sui.

| Projects | Protocols |
| - | - |
| cetus, cetus\_adapter, daos\_sui, movescription, suiai, suiemoji, suipump, moonbags | cetus\_protocol |
| bluefin | bluefin |
| turbos | turbos |
| momentum, flowx, kriya, steamm, aftermath, volo, haedal, deepbook, afsui, obric, alphafi, metastable, scallop, suilend, hawal | cetus\_aggregator |
| flowx | flowx\_v3 |
| flowx | flowx\_v2 |
| bluemove, move\_pump | bluemove |
| deepbook | deepbook |
| momentum | momentum |
| We add new DEX protocols on a case-by-case basis. If you'd like to request support for a specific DEX, please reach out to our team. Your feedback helps us prioritize our roadmap. | |
| `_str` columns are numeric fields cast `varchar` to retain precision when summing. | |
| Unique Key: `unique_id` | |

### Table Columns

| Column Name | Data Type | Description |
| - | - | - |
| project | VARCHAR(134217728) | The project (decentralized exchange) of the liquidity pool that the swap occurred from. |
| protocol | VARCHAR(134217728) | DEX protocol (& version, if applicable) of the contract address facilitating the swap. |
| liquidity\_pool\_address | VARCHAR(134217728) | The aaddress of the liquidity pool holding the asset |
| sender\_address | VARCHAR(134217728) | The address of the sender emitted on the swap event logs. |
| to\_address | VARCHAR(134217728) | Address of the recipient emitted on the swap event logs. |
| coin\_sold\_type | VARCHAR(134217728) | Type of the coin sold. |
| coin\_sold\_name | VARCHAR(134217728) | Name of the coin sold. |
| coin\_sold\_symbol | VARCHAR(134217728) | Symbol of the coin sold. |
| coin\_sold\_decimals | NUMBER(38,0) | Coin decimals of the coin sold. |
| coin\_sold\_amount\_raw\_str | VARCHAR(134217728) | Raw amount of coins sold (unnormalized) in string. |
| coin\_sold\_amount\_raw | FLOAT | Raw amount of coins sold (unnormalized). |
| coin\_sold\_amount\_str | VARCHAR(134217728) | Amount of coins sold in string. |
| coin\_sold\_amount | FLOAT | Amount of coins sold. |
| usd\_sold\_amount | FLOAT | Amount of coin sold in USD value. |
| coin\_bought\_type | VARCHAR(134217728) | Type of the coin bought. |
| coin\_bought\_name | VARCHAR(134217728) | Name of the coin bought. |
| coin\_bought\_symbol | VARCHAR(134217728) | Symbol of the coin bought. |
| coin\_bought\_decimals | NUMBER(38,0) | Coin decimals of the coin bought. |
| coin\_bought\_amount\_raw\_str | VARCHAR(134217728) | Raw amount of coins bought (unnormalized) in string. |
| coin\_bought\_amount\_raw | FLOAT | Raw amount of coins bought (unnormalized). |
| coin\_bought\_amount\_str | VARCHAR(134217728) | Amount of coins bought in string. |
| coin\_bought\_amount | FLOAT | Amount of coins bought. |
| usd\_bought\_amount | FLOAT | Amount of coin bought in USD value. |
| usd\_amount | FLOAT | USD value of the swap. This field preferentially selects the USD value of Native Assets and Stablecoin (USDT/USDC) tokens. |
| transaction\_block\_digest | VARCHAR(134217728) | Digest of the transaction block containing this swap. |
| event\_seq | NUMBER(38,0) | Sequence number of the event within the transaction. |
| checkpoint\_timestamp | TIMESTAMP\_NTZ(9) | Timestamp of the checkpoint containing this swap. |
| checkpoint\_sequence | NUMBER(38,0) | Sequence number of the checkpoint. |
| checkpoint\_digest | VARCHAR(134217728) | Digest of the checkpoint. |
| unique\_id | VARCHAR(134217728) | Unique ID of each trade. |
| \_created\_at | TIMESTAMP\_NTZ(9) | Timestamp when the record was created. |
| \_updated\_at | TIMESTAMP\_NTZ(9) | Timestamp when the record was last updated. |
| \_changed\_since\_full\_refresh | BOOLEAN | Boolean indicating if the record has changed since the last full refresh. |
