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

# Fees

> GMX perpetuals fee events on Arbitrum, with the protocol revenue share.

`arbitrum.perpetuals.fees` contains one row per GMX fee event on Arbitrum. `fee_type` categorizes each event as a position, liquidation, swap, mint, or redeem fee, and `revenue_usd` gives the protocol's retained share.

Current coverage includes GMX v1 and v2.

### Table Columns

| Column Name       | Description                                                                                             | Type           | Example                                                            |
| ----------------- | ------------------------------------------------------------------------------------------------------- | -------------- | ------------------------------------------------------------------ |
| project           | The perpetuals project.                                                                                 | varchar        | gmx                                                                |
| protocol          | The specific protocol within the project.                                                               | varchar        | gmx                                                                |
| version           | Protocol version.                                                                                       | varchar        | v2                                                                 |
| chain             | Blockchain network.                                                                                     | varchar        | arbitrum                                                           |
| block\_timestamp  | Block timestamp of the fee event.                                                                       | timestamp\_ntz | 2026-04-18 00:58:19                                                |
| block\_date       | Calendar date of the fee event (UTC).                                                                   | date           | 2026-04-18                                                         |
| block\_number     | Block number containing the event.                                                                      | number         | 453,618,419                                                        |
| transaction\_hash | Transaction hash.                                                                                       | varchar        | 0x9184c0f91443ebadd0e63d9e1c1c567577af3cd608c69714d3cd7c5d4eb8c17a |
| log\_index        | Position of the event log within the block.                                                             | number         | 19                                                                 |
| unique\_id        | Unique identifier for the row.                                                                          | varchar        | txn-0x9184c0f9...\_log\_index-19                                   |
| trader            | Wallet address charged the fee. Null for pool swap fees, which are not attributable to a single trader. | varchar        | 0xeded90f2935b56540f06ae651b3988a604f276e0                         |
| market\_address   | GMX market address. Null for swap and mint/redeem fees, which are not tied to a single market.          | varchar        | 0x70d95587d40a2caf56bd97485ab3eec10bee6336                         |
| market\_symbol    | Symbol of the market's index token.                                                                     | varchar        | WETH                                                               |
| asset\_address    | Address of the token the fee is denominated in.                                                         | varchar        | 0xaf88d065e77c8cc2239327c5edb3a432268e5831                         |
| fee\_type         | Fee category: position, liquidation, swap, mint, or redeem.                                             | varchar        | position                                                           |
| fee\_usd          | Total fee for the event in USD.                                                                         | number         | 0.000046                                                           |
| revenue\_usd      | Protocol's retained share of the fee in USD.                                                            | number         | 0.000007                                                           |
| extra\_fields     | VARIANT column with protocol-specific fee detail.                                                       | variant        |                                                                    |

### Sample Query

```sql theme={null}
SELECT *
FROM arbitrum.perpetuals.fees
WHERE block_date = '2026-07-23'
LIMIT 100;
```
