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

# Token Prices Hourly

> Hourly token prices derived from DEX trades.

The`dex.token_prices_hourly` table contains hourly price data of tokens computed from the `dex.trades` table. This table also provides metrics for the swap volumes, traders and trade counts of assets swapped onchain at the hourly basis.

### Table Details

| Property | Value |
| - | - |
| Table Name | `bsc.dex.token_prices_hourly` |
| Table Status | Production-Ready |
| Unique Key | `timestamp`, `address` |
| Clustering Key(s) | `timestamp::date` |

### Methodology

```sql theme={null}
price = sum(usd_volume)/sum(token_volume) 
11.111 USD = 200,000/18,000
where price = 11.111 USD and the usd_trading_volume = 200,000
```

### Table Columns

| Column Name | Data Type | Description |
| - | - | - |
| chain | VARCHAR(134217728) | Blockchain network (e.g., 'ethereum', 'arbitrum') |
| timestamp | TIMESTAMP\_NTZ(9) | Start of the hourly period |
| address | VARCHAR(42) | Token contract address |
| symbol | VARCHAR(134217728) | Token symbol |
| name | VARCHAR(134217728) | Token name |
| decimals | NUMBER(38,0) | Number of decimal places for the token |
| price | FLOAT | Volume-weighted average price for the hour |
| median\_price | FLOAT | Median price from all trades in the hour |
| median\_safe\_price | FLOAT | Filtered median price by filtering swaps > 100 usd in volume |
| usd\_trading\_volume | FLOAT | Total USD volume traded in the hour |
| traders | NUMBER(38,0) | Number of distinct traders that swapped the token for the hour by counting distinct `transaction_from_address.` |
| trade\_count | NUMBER(38,0) | Total number of swaps executed |
| \_created\_at | TIMESTAMP\_NTZ(9) | Timestamp of entry creation |
| \_updated\_at | TIMESTAMP\_NTZ(9) | Timestamp of entry update |

### Related Docs

* [EVM DEX Token Prices Hourly](https://docs.allium.so/historical-data/supported-blockchains/evm/core-schemas/dex/token-prices-hourly.md)
