Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Market Order

Executes immediately at the best available price.

Use When

You need to enter or exit a position immediately and price slippage is acceptable.

Parameters

  • Asset: The token or contract you want to trade

  • Size: Amount to buy or sell

  • Direction: Buy/Sell

  • Reduce Only (optional): Only reduces existing position, won't open new position

How It Works

  1. You place a market order

  2. Order immediately matches against the best available prices on the orderbook

  3. Execution happens within the same block on Hyperliquid

  4. You get filled at whatever price is available

Important Notes

  • No price guarantee: You'll get the best available price, but it may differ from the last traded price

  • Slippage: Large orders can move through multiple price levels

  • Immediate execution: Best for urgent entries/exits

  • Higher fees: Market orders are always taker orders (you pay taker fees, no rebates)

Best Practices

  • Check orderbook depth before placing large market orders

  • Consider using limit orders if you have time and want price control

  • Use TWAP orders for very large positions to minimize slippage

  • Set a mental max acceptable slippage before executing

Last updated