# Fees

The Fees API provides comprehensive access to HyperLiquid fee data, including daily and hourly fee statistics for both total fees and spot-specific fees. All endpoints are public and only protected by rate limiting.

### Rate Limit Considerations

* Statistics: 1 request per 30 seconds recommended
* Raw Data: 1 request per minute recommended
* Bulk Operations: Use appropriate caching strategies

### Fees Statistics

<mark style="color:green;">`GET`</mark> <https://liquidterminal.up.railway.app/market/fees>

Retrieves aggregated fee statistics including daily and hourly fee data for both total fees and spot fees.

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
  "success": true,
  "data": {
    "dailyFees": 125000.50,
    "dailySpotFees": 45000.25,
    "hourlyFees": 5208.35,
    "hourlySpotFees": 1875.10
  }
}
```

{% endtab %}
{% endtabs %}

## Cumulative fees

<mark style="color:green;">`GET`</mark> <https://liquidterminal.up.railway.app/market/fees/raw>

Retrieves raw fee data with automatic conversion from micro-USD to USD and ISO timestamp formatting.

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
  "success": true,
  "data": [
    {
      "time": "2024-01-15T10:30:00.000Z",
      "total_fees": 125000.50,
      "total_spot_fees": 45000.25
    },
    {
      "time": "2024-01-15T10:00:00.000Z",
      "total_fees": 120000.25,
      "total_spot_fees": 43000.10
    }
  ]
}
```

{% endtab %}
{% endtabs %}
