# Hyperliquid — Query a user's fees

Get Hyperliquid User Fees data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Hyperliquid, pass parameters such as type, user, and retrieve structured data including user maker fee rate, user taker fee rate, active referral discount, volume-history date, and user maker volume for fee panels, and volume context.

Documentation: https://openany.si/hyperliquid/hyperliquid-query-a-user-s-fees/feab961f-e638-4c41-a1e8-faef231a2950/
API ID: feab961f-e638-4c41-a1e8-faef231a2950
Provider: hyperliquid
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/hyperliquid/info/user-fees
Page update time: 2026-12-03T02:49:32.847Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:32.535Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Hyperliquid User Fees API

POST type="userFees" with user. The response includes user rate fields, feeSchedule, dailyUserVlm and discount context. Rates are decimal strings, and optional trial or staking-link fields can be null; preserve those states independently.

## What You Can Build

- **Fee panels**: Display user maker and taker rates with schedule context.
- **Volume context**: Retain dates and volume categories when comparing fee information.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `userAddRate` | User maker fee rate |
| `userCrossRate` | User taker fee rate |
| `userSpotAddRate` | User spot maker fee rate |
| `userSpotCrossRate` | User spot taker fee rate |
| `activeReferralDiscount` | Active referral discount |
| `dailyUserVlm[].date` | Volume-history date |
| `dailyUserVlm[].userAdd` | User maker volume |
| `dailyUserVlm[].userCross` | User taker volume |
| `feeSchedule` | Exchange fee-schedule context |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Hyperliquid — Query a user's fees request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "additionalProperties": false,
      "examples": [
        {
          "type": "userFees",
          "user": "0x677d831aef5328190852e24f13c46cac05f984e7"
        }
      ],
      "properties": {
        "type": {
          "const": "userFees",
          "description": "Fixed native Info query discriminator.",
          "enum": [
            "userFees"
          ],
          "example": "userFees",
          "type": "string"
        },
        "user": {
          "description": "hexadecimal format; e.g. 0x0000000000000000000000000000000000000000.",
          "example": "0x677d831aef5328190852e24f13c46cac05f984e7",
          "pattern": "^0x[0-9a-fA-F]{40}$",
          "type": "string"
        }
      },
      "required": [
        "type",
        "user"
      ],
      "type": "object",
      "description": "Query a user's fees Documentation prepared only; runtime not verified."
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "activeReferralDiscount": {
      "type": "string"
    },
    "activeStakingDiscount": {
      "type": "object",
      "properties": {
        "bpsOfMaxSupply": {
          "type": "string"
        },
        "discount": {
          "type": "string"
        }
      }
    },
    "dailyUserVlm": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string"
          },
          "exchange": {
            "type": "string"
          },
          "userAdd": {
            "type": "string"
          },
          "userCross": {
            "type": "string"
          }
        }
      }
    },
    "feeSchedule": {
      "type": "object",
      "properties": {
        "add": {
          "type": "string"
        },
        "cross": {
          "type": "string"
        },
        "referralDiscount": {
          "type": "string"
        },
        "spotAdd": {
          "type": "string"
        },
        "spotCross": {
          "type": "string"
        },
        "stakingDiscountTiers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "bpsOfMaxSupply": {
                "type": "string"
              },
              "discount": {
                "type": "string"
              }
            }
          }
        },
        "tiers": {
          "type": "object",
          "properties": {
            "mm": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "add": {
                    "type": "string"
                  },
                  "makerFractionCutoff": {
                    "type": "string"
                  }
                }
              }
            },
            "vip": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "add": {
                    "type": "string"
                  },
                  "cross": {
                    "type": "string"
                  },
                  "ntlCutoff": {
                    "type": "string"
                  },
                  "spotAdd": {
                    "type": "string"
                  },
                  "spotCross": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "feeTrialEscrow": {
      "type": "string"
    },
    "nextTrialAvailableTimestamp": {
      "type": "null"
    },
    "stakingLink": {
      "type": "null"
    },
    "trial": {
      "type": "null"
    },
    "userAddRate": {
      "type": "string"
    },
    "userCrossRate": {
      "type": "string"
    },
    "userSpotAddRate": {
      "type": "string"
    },
    "userSpotCrossRate": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/hyperliquid/info/user-fees' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "type": "userFees",
  "user": "0x677d831aef5328190852e24f13c46cac05f984e7"
}'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "activeReferralDiscount": "0.0",
  "activeStakingDiscount": {
    "bpsOfMaxSupply": "0.0",
    "discount": "0.0"
  },
  "dailyUserVlm": [
    {
      "date": "2026-10-15",
      "exchange": "10085763769.8999996185",
      "userAdd": "0.0",
      "userCross": "0.0"
    },
    {
      "date": "2026-10-16",
      "exchange": "6439226891.7100000381",
      "userAdd": "0.0",
      "userCross": "0.0"
    },
    {
      "date": "2026-10-17",
      "exchange": "2692935698.5100002289",
      "userAdd": "0.0",
      "userCross": "0.0"
    },
    {
      "date": "2026-10-18",
      "exchange": "4772674903.8599996567",
      "userAdd": "0.0",
      "userCross": "0.0"
    },
    {
      "date": "2026-10-19",
      "exchange": "4885881952.220000267",
      "userAdd": "0.0",
      "userCross": "0.0"
    },
    {
      "date": "2026-10-20",
      "exchange": "6372844767.1199998856",
      "userAdd": "0.0",
      "userCross": "0.0"
    },
    {
      "date": "2026-10-21",
      "exchange": "5981772884.6499996185",
      "userAdd": "0.0",
      "userCross": "0.0"
    },
    {
      "date": "2026-10-22",
      "exchange": "7527053948.470000267",
      "userAdd": "0.0",
      "userCross": "0.0"
    },
    {
      "date": "2026-10-23",
      "exchange": "4964207281.3800001144",
      "userAdd": "0.0",
      "userCross": "0.0"
    },
    {
      "date": "2026-10-24",
      "exchange": "5086803493.0500001907",
      "userAdd": "0.0",
      "userCross": "0.0"
    },
    {
      "date": "2026-10-25",
      "exchange": "3231018665.6900000572",
      "userAdd": "0.0",
      "userCross": "0.0"
    },
    {
      "date": "2026-10-26",
      "exchange": "5555063796.1499996185",
      "userAdd": "0.0",
      "userCross": "0.0"
    },
    {
      "date": "2026-10-27",
      "exchange": "4273179226.6799998283",
      "userAdd": "0.0",
      "userCross": "0.0"
    },
    {
      "date": "2026-10-28",
      "exchange": "5104381359.0399999619",
      "userAdd": "0.0",
      "userCross": "0.0"
    },
    {
      "date": "2026-10-29",
      "exchange": "1620512984.1500000954",
      "userAdd": "0.0",
      "userCross": "0.0"
    }
  ],
  "feeSchedule": {
    "add": "0.00015",
    "cross": "0.00045",
    "referralDiscount": "0.04",
    "spotAdd": "0.0004",
    "spotCross": "0.0007",
    "stakingDiscountTiers": [
      {
        "bpsOfMaxSupply": "0.0",
        "discount": "0.0"
      },
      {
        "bpsOfMaxSupply": "0.0001",
        "discount": "0.05"
      },
      {
        "bpsOfMaxSupply": "0.001",
        "discount": "0.1"
      },
      {
        "bpsOfMaxSupply": "0.01",
        "discount": "0.15"
      },
      {
        "bpsOfMaxSupply": "0.1",
        "discount": "0.2"
      },
      {
        "bpsOfMaxSupply": "1.0",
        "discount": "0.3"
      },
      {
        "bpsOfMaxSupply": "5.0",
        "discount": "0.4"
      }
    ],
    "tiers": {
      "mm": [
        {
          "add": "-0.00001",
          "makerFractionCutoff": "0.005"
        },
        {
          "add": "-0.00002",
          "makerFractionCutoff": "0.015"
        },
        {
          "add": "-0.00003",
          "makerFractionCutoff": "0.03"
        }
      ],
      "vip": [
        {
          "add": "0.00012",
          "cross": "0.0004",
          "ntlCutoff": "5000000.0",
          "spotAdd": "0.0003",
          "spotCross": "0.0006"
        },
        {
          "add": "0.00008",
          "cross": "0.00035",
          "ntlCutoff": "25000000.0",
          "spotAdd": "0.0002",
          "spotCross": "0.0005"
        },
        {
          "add": "0.00004",
          "cross": "0.0003",
          "ntlCutoff": "100000000.0",
          "spotAdd": "0.0001",
          "spotCross": "0.0004"
        },
        {
          "add": "0.0",
          "cross": "0.00028",
          "ntlCutoff": "500000000.0",
          "spotAdd": "0.0",
          "spotCross": "0.00035"
        },
        {
          "add": "0.0",
          "cross": "0.00026",
          "ntlCutoff": "2000000000.0",
          "spotAdd": "0.0",
          "spotCross": "0.0003"
        },
        {
          "add": "0.0",
          "cross": "0.00024",
          "ntlCutoff": "7000000000.0",
          "spotAdd": "0.0",
          "spotCross": "0.00025"
        }
      ]
    }
  },
  "feeTrialEscrow": "0.0",
  "nextTrialAvailableTimestamp": null,
  "stakingLink": null,
  "trial": null,
  "userAddRate": "0.00015",
  "userCrossRate": "0.00045",
  "userSpotAddRate": "0.0004",
  "userSpotCrossRate": "0.0007"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which identifier is required?
Supply the actual user account address with type="userFees". A symbol or agent-wallet address is not a substitute for the target account.

### Are rates already percentage display strings?
They are decimal rate strings. Keep their precision and use an explicit conversion if your interface presents percentages.

### Do null trial fields mean a zero fee?
No. Keep optional null trial, staking-link or availability fields separate from the reported user fee rates.

### Do these rates determine OpenAny request billing?
No. They describe exchange fee information for the user. OpenAny billing follows the selected API implementation.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

## Available implementations
- hyperliquid: https://openany.si/hyperliquid/hyperliquid-query-a-user-s-fees/feab961f-e638-4c41-a1e8-faef231a2950/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
