Testnet

What trading costs

Hyperliquid’s 0.045%, the bot fee (0.05% on a typical bot) and funding: what each is, and how they add up.

5 minLesson 3 of 43 questions at the end

Key ideas

  1. 1Each fill pays Hyperliquid’s fee (0.045% for a market order, 0.015% for a resting limit order) plus the bot fee (0.05% on a typical bot; yours shows its exact fee before every trade).
  2. 2Fees are charged on the position size, not your margin, on the way in and again on the way out, so with leverage they are a bigger share of your margin.
  3. 3Funding is paid between longs and shorts every hour while a position is open. It isn’t a fee to Lance.
  4. 4Lance shows every close as the PnL before fees, the fee to open, the fee to close and funding, then the net PnL: what the trade made in the end.

The three costs

  • Hyperliquid’s fee, on every fill: 0.045% for an order that fills straight away (a taker), 0.015% for a limit order that waited on the book (a maker).
  • The bot fee, on every fill: 0.05% on a typical bot. Your bot shows its exact fee before every trade, and it can never be more than you approved when you connected. It is shared between Lance and your community’s owner.
  • Funding, every hour a position is open, paid between longs and shorts. Not a fee to anyone. Funding
Formula
Fee per fill = position size × (Hyperliquid’s fee + bot fee)
Fees are worked out on the position size, not the margin.

A round trip, in numbers

Worked example: A $1,000 position, opened and closed at marketBTC at an example price
Hyperliquid, 0.045% × 2
$0.90
Bot fee, 0.05% × 2
$1.00
Round trip
$1.90
At 10x, of your $100 margin
1.9%

These use a typical bot fee of 0.05%. Your bot shows its exact fee before every trade.

What a trade made, in the end

When you close, Lance shows the result the same way every time: the PnL before fees (what the price move made), then the fee to open, the fee to close and the funding paid or received while it was open, and last the net PnL: what the trade made or lost once every cost is counted.

A close, line by line

Set the side, the size, how far BTC moves and how long you hold. The lines are worked out the way Lance works out a real close.

BTC at an example priceBot fee 0.05% (typical)funding 0.00125% an hour, Hyperliquid’s baseline
Side
Held for
Position size$1,000
BTC moves+1.0% → 101,000
−5%0+5%
Close Long BTC, $1,000100,000 → 101,000
PnL before fees
+$10.00
Fee to open
−$0.95
Fee to close
−$0.96
Funding
−$0.10
Net PnL
+$7.99
Fees: Hyperliquid $0.90 · bot $1.01

Costs took $2.01 of the $10.00 the price move made.

Formula
Net PnL = PnL before fees − fee to open − fee to close − funding
A cost is taken off; funding received is added.

Work out your own

Round-trip fees

Change the size, the order type and the leverage. Market orders pay the taker fee; a limit order that rests on the book pays the maker fee. The bot fee is the same either way.

Bot fee 0.05% (typical)Your bot shows its exact fee before every trade.
Position size$1,000
In and out with
Leverage
Hyperliquid, in and out
$0.90
Bot fee, in and out
$1.00
Round trip
$1.90
Of a 10x margin
1.90%
Margin $100.00

The price has to move 0.190% your way before this trade is even. At 10x, the fees are 1.90% of the margin: leverage doesn’t change the fee, but it makes it a bigger share of what you put in.

Why leverage makes fees matter more

Leverage doesn’t change the fee rate, but it changes what the fee is measured against. At 10x, $100 of margin holds a $1,000 position, so a $1.90 round trip is 1.9% of what you put in. At 40x, the same margin pays four times as much in fees.

Common mistakes

  • Counting fees on the margin. A $100 margin at 10x is a $1,000 position, and fees are worked out on the $1,000.
  • Forgetting the exit. A round trip pays twice: once to open and once to close.
  • Trading so often that fees eat every small move. A position needs to move past both fees before it is even.

Check yourself

Question 1 of 3

You open a $1,000 position with $100 of margin. What are fees worked out on?

Previous: Connecting your wallet

Lance Learn is education, not advice. Examples use made-up or rounded numbers and say so; nothing here tells you what to trade.

Trading perpetual futures with leverage is high risk. Prices can move fast and you can lose all the money you put in. Lance is software: it does not give investment advice, manage money or trade on anyone’s behalf. Trades are executed on Hyperliquid, a third-party exchange that is not affiliated with Lance. Lance is not available to persons in the United States, the United Kingdom and sanctioned countries.