info
endpoint with type: "userFees"
retrieves detailed information about a user’s fee structure and trading costs on the Hyperliquid exchange. This endpoint provides comprehensive fee information including base rates, VIP tiers, discounts, and effective rates after all reductions are applied.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
Request body
type
(string, required) — The request type. Must be"userFees"
to retrieve user’s fee structure.user
(string, required) — Address in 42-character hexadecimal format (e.g.,0x31ca8395cf837de08b24da3f660e77761dfb974b
).
Response
The response is a comprehensive object containing detailed fee information, schedules, and user-specific rates:Daily volume data
dailyUserVlm
(array) — Array of daily volume data objects:date
(string) — Date in YYYY-MM-DD formatuserCross
(string) — User’s cross-margin trading volume for the dayuserAdd
(string) — User’s isolated/add margin trading volume for the dayexchange
(string) — Total exchange volume for the day
Fee schedule structure
feeSchedule
(object) — Complete fee schedule information:cross
(string) — Base cross-margin taker fee rateadd
(string) — Base isolated/add margin maker fee ratespotCross
(string) — Base spot cross-margin taker fee ratespotAdd
(string) — Base spot isolated/add margin maker fee ratetiers
(object) — Tiered fee structures:vip
(array) — VIP tier configurations with volume cutoffs and reduced ratesmm
(array) — Market maker tier configurations
referralDiscount
(string) — Base referral discount percentagestakingDiscountTiers
(array) — Staking-based discount tiers
User-specific rates
userCrossRate
(string) — User’s effective cross-margin trading rate (after discounts)userAddRate
(string) — User’s effective isolated/add margin trading rate (after discounts)userSpotCrossRate
(string) — User’s effective spot cross-margin trading rateuserSpotAddRate
(string) — User’s effective spot isolated/add margin trading rate
Applied discounts and benefits
activeReferralDiscount
(string) — Currently active referral discount percentageactiveStakingDiscount
(object) — Currently active staking discount:bpsOfMaxSupply
(string) — Basis points of max supply being stakeddiscount
(string) — Discount percentage applied
Trial and rewards
trial
(object/null) — Trial program information (if applicable)feeTrialReward
(string) — Rewards from fee trial programsnextTrialAvailableTimestamp
(integer/null) — When next trial becomes available
Staking information
stakingLink
(object) — Staking relationship information:type
(string) — Type of staking link (e.g., “tradingUser”)stakingUser
(string) — Address of the linked staking user
Understanding fee structure
Cross vs Add (Isolated) margin:- Cross margin: Uses entire account balance as collateral for positions
- Add/Isolated margin: Each position has dedicated collateral
- Cross rates: Generally higher due to increased risk sharing
- Add rates: Lower rates to encourage isolated position management
- Perpetuals fees:
userCrossRate
anduserAddRate
for perpetual futures - Spot fees:
userSpotCrossRate
anduserSpotAddRate
for spot trading - Market maker rebates: Negative fees for qualifying market makers
- Referral discounts: Reductions based on referral program participation
- Staking discounts: Fee reductions based on token staking amounts
- VIP tiers: Volume-based fee reductions with specific cutoffs
- Trial programs: Temporary fee benefits and rewards
- Base rates are modified by applicable discounts
- User-specific rates show final effective rates after all benefits
- Staking discounts based on percentage of maximum token supply held
Example request
Shell
Example response
Use cases
Theinfo
endpoint with type: "userFees"
is essential for applications that need to:
- Trading cost calculation: Accurately estimate trading costs using user-specific rates
- Fee optimization: Help users understand how to reduce fees through staking or referrals
- Profitability analysis: Calculate net profits after accounting for actual trading fees
- Volume analysis: Track daily trading volumes and exchange activity patterns
- Discount tracking: Monitor active staking and referral discounts
- Trading strategy optimization: Factor accurate fees into algorithmic trading decisions
- Fee dashboards: Display current fee structure, discounts, and potential savings
- Cross vs isolated margin decisions: Compare fee structures for different margin types
- Performance reporting: Include accurate fee costs in trading performance analysis
- Institutional reporting: Provide comprehensive fee transparency for clients
- Strategy backtesting: Include realistic fee models in historical analysis
- Staking optimization: Understand staking requirements for maximum fee discounts
Body
application/json
Response
200 - application/json
User's fee structure and trading cost information
User fee information including daily volumes, fee schedule, effective rates, discounts, and staking link
Array of daily volume data