The simulator

Orders and positions

Market and limit orders, leverage, margin, fees, take profit, stop loss and liquidation.

Kinfield simulates perpetual futures the way Hyperliquid prices them, with a few deliberate simplifications listed at the end of this page. Signed in, every rule here is enforced by Kinfield's server, not by your browser.

The basics

RuleValue
Starting balance$100,000 per account
Minimum order$10 notional
Leverage1x up to 20x, and never above the market's own Hyperliquid limit
Taker fee0.045% of notional, on market fills and on every close
Maker fee0.015% of notional, when a resting limit order fills
Resting limit ordersUp to 20 open at once, each within 50% of the market price
FundingShown in the market bar, but not charged or paid

Size is the position's notional value in US dollars at entry. Margin is the part of your balance it ties up: size divided by leverage. A $10,000 position at 5x uses $2,000 of margin.

Market orders

A market order fills at once at the market price. Signed in, that price is Hyperliquid's mid (halfway between the best bid and ask) for that one market, fetched fresh the moment your order reaches Kinfield's server and timestamped by Hyperliquid. It is never a cached price and never a price your browser sent. The taker fee is taken from your balance when the position opens.

Limit orders

Limit orders need an account. A limit order rests until the market reaches your price:

  • A long limit must sit below the current price; a short limit above it.
  • A limit that is already through the market (a long above the price, a short below it) fills straight away at the market price, as a market order with the taker fee, just as it would on an exchange.
  • While it rests, its margin plus the maker fee is held back from your free margin, shown as Held for orders in the Account panel.
  • It fills at exactly your limit price, with the maker fee, as soon as a one-minute bar trades through it. That is checked against Hyperliquid's real price history, so an order fills correctly even if nobody has the page open.
  • The market context your agent learns from is captured when you place the order, because that is when you made the decision.
  • Cancel it any time from the Open orders tab. Cancelling releases the held margin.

Tip: click a price in the order book to use it as the limit price.

Equity and free margin

equity       = balance + unrealized P&L of open positions
margin used  = sum of (size / leverage) over open positions
held         = sum of (size / leverage + size x maker fee) over resting orders
free margin  = equity - margin used - held

A new order is accepted when its margin plus its fee fits in your free margin. Otherwise it is refused with Not enough free margin. The ticket's size slider works from the same number.

Take profit and stop loss

Both are optional prices you can set on the order or change later on the open position. They are checked against the entry price (or the limit price for a resting order, or the current price when you edit an open position):

LongShort
Take profitAbove the priceBelow the price
Stop lossBelow the priceAbove the price

When the market reaches one, the position closes at exactly that price. Clear a field to remove it.

Liquidation

A position is liquidated when its loss uses up its whole margin. Kinfield places that point at:

long:  liquidation price = entry x (1 - 1 / leverage)
short: liquidation price = entry x (1 + 1 / leverage)

A liquidated position loses its entire margin, and the exit fee is still charged. The ticket shows the estimated liquidation price before you place the order, and the chart draws it on every open position.

How triggers are settled

Signed in, take profit, stop loss, liquidation and resting limits are replayed against Hyperliquid's real price history every time your account is read or changed, and by the agents' scheduled run. Kinfield uses one-minute bars where Hyperliquid still has them, then 15-minute and hourly bars further back, plus the live price. So a stop fires at the right price and time even if you were away for a week.

The worse outcome rule

A single bar doesn't say in what order its high and low happened. When one bar touches both a protective level (stop loss or liquidation) and the take profit, Kinfield records the protective level, the worse outcome. The record must never flatter the trader or the agent.

Closing by hand

When you close a position, its price history since it was last checked is replayed first. If it had already hit its stop loss, take profit or liquidation, it closes there instead of at the current price. A stop that was already hit can't be dodged by closing by hand.

As a guest

Guest positions are checked against the live price in your browser, and only while the simulator is open.

How P&L is calculated

quantity        = size / entry price
gross P&L       = quantity x (exit - entry)       for a long
                = quantity x (entry - exit)       for a short
entry fee       = size x fee rate (taker, or maker for a filled limit)
exit fee        = quantity x exit price x taker fee
realized P&L    = gross P&L - entry fee - exit fee
return on margin = realized P&L / (size / leverage)

A worked example

Long BTC, $10,000 at 5x, market order filled at $100,000

quantity         = 10,000 / 100,000            = 0.1 BTC
margin           = 10,000 / 5                  = $2,000
entry fee        = 10,000 x 0.045%             = $4.50
liquidation      = 100,000 x (1 - 1/5)         = $80,000

Closed by hand at $102,000
gross P&L        = 0.1 x (102,000 - 100,000)   = $200.00
exit fee         = 0.1 x 102,000 x 0.045%      = $4.59
realized P&L     = 200.00 - 4.50 - 4.59        = $190.91
return on margin = 190.91 / 2,000              = 9.55%

Limits and errors

To keep the record clean and the server responsive, each account has limits far above what a person clicks:

  • 30 new trades a minute and 1,000 a day per account. Closing is never blocked.
  • 20 changes (orders, closes, cancels, edits) in any 10 seconds.
  • 10 account resets a day.
MessageWhy
Minimum order is $10The size is under $10.
Not enough free marginMargin plus fee is more than your free margin.
Take profit must be above entry price (or below, and so on)The level is on the wrong side of the price.
Limit price is too far from the marketThe limit is more than 50% away from the price.
Up to 20 open ordersCancel a resting order first.
Sign in to place limit ordersLimit orders need an account.
No price for this market right now. Try again.Hyperliquid didn't answer in time. Nothing was recorded.

How it differs from a real exchange

  • Every order fills in full at one price: no slippage, no partial fills and no queue position.
  • Market orders fill at the mid price, not the far side of the book.
  • Liquidation happens when the margin is gone, without Hyperliquid's maintenance margin or partial liquidations.
  • Funding is not applied.
  • Fees are Hyperliquid's base tier, with no volume discounts.

These keep results simple and comparable. They also mean a real order could do worse, so treat simulated results accordingly. How fills are recorded is covered in The verified ledger.