> For the complete documentation index, see [llms.txt](https://hydromancer.xyz/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hydromancer.xyz/docs/rest-api/fees.md). Agents can also search and read this documentation through its [MCP server](https://hydromancer.xyz/docs/~gitbook/mcp).

# Fees

Endpoints for querying a Hyperliquid user's trading fees and referral rewards.

#### **Retrieve user fees**

{% content-ref url="/pages/f2HWHESYenJadxbXZCFG" %}
[userFees](https://hydromancer.xyz/docs/rest-api/fees/userfees.md)
{% endcontent-ref %}

#### **Retrieve a user's referral and builder rewards**

{% content-ref url="/pages/k71ISRmpoYkcMgQEWiAb" %}
[referral](https://hydromancer.xyz/docs/rest-api/fees/referral.md)
{% endcontent-ref %}
