> For the complete documentation index, see [llms.txt](https://docs.hydromancer.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hydromancer.xyz/readme/rest-api/roles-and-agents/userratelimit.md).

# userRateLimit

Get a user's Hyperliquid API request allowance and usage.

Get a user's Hyperliquid address-based rate limit: cumulative volume, requests used, and the request cap.

Hyperliquid limits the number of actions an address can send based on trading volume. Every address starts with 10,000 requests. It earns one more request for every 1 USDC of cumulative trading volume.

This endpoint reports the address's position against that limit. It applies to actions sent through Hyperliquid's exchange endpoint. Info and Hydromancer requests use your plan's weight budget instead.

## POST Request

| Field  | Type   | Description                                   |
| ------ | ------ | --------------------------------------------- |
| `type` | string | Must be `"userRateLimit"`                     |
| `user` | string | Ethereum address (0x-prefixed, 42 characters) |

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

```bash
curl -X POST https://api.hydromancer.xyz/info \
  -H "Authorization: Bearer $HYDROMANCER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "userRateLimit",
    "user": "0x5b5d51203a0f9079f8aeb098a6523a13f298c060"
  }'
```

{% endtab %}

{% tab title="Python" %}

```python
import os
import requests

response = requests.post(
    "https://api.hydromancer.xyz/info",
    json={
        "type": "userRateLimit",
        "user": "0x5b5d51203a0f9079f8aeb098a6523a13f298c060"
    },
    headers={
        "Authorization": f"Bearer {os.environ.get('HYDROMANCER_API_KEY')}",
        "Content-Type": "application/json"
    }
)

print(response.json())
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
import axios from "axios";

const response = await axios.post(
  "https://api.hydromancer.xyz/info",
  {
    type: "userRateLimit",
    user: "0x5b5d51203a0f9079f8aeb098a6523a13f298c060"
  },
  {
    headers: {
      Authorization: `Bearer ${process.env.HYDROMANCER_API_KEY}`,
      "Content-Type": "application/json"
    }
  }
);

console.log(response.data);
```

{% endtab %}
{% endtabs %}

***

## Response Fields

| Field              | Type   | Description                                                                      |
| ------------------ | ------ | -------------------------------------------------------------------------------- |
| `cumVlm`           | string | Cumulative trading volume of the address in USDC, since it first traded          |
| `nRequestsUsed`    | int    | Actions the address has sent, less any reserved allowance. `0` for a new address |
| `nRequestsCap`     | int    | Total actions allowed: 10,000 plus one per 1 USDC of `cumVlm`                    |
| `nRequestsSurplus` | int    | Reserved allowance not yet used. `0` unless the address bought extra allowance   |

When `nRequestsUsed` reaches `nRequestsCap`, Hyperliquid permits one action every 10 seconds. Trading more volume increases the cap.&#x20;

An address that never traded returns `cumVlm` `"0.0"` and a cap of 10,000.

<details>

<summary>Response</summary>

```json
{
  "cumVlm": "5677568944.3100004196",
  "nRequestsUsed": 5568463,
  "nRequestsCap": 5677578944,
  "nRequestsSurplus": 0
}
```

</details>
