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

Market Order

Market Orders

Execute immediately at best available price. Routing algorithm splits between order book and AMM based on market conditions.

Parameters:

  • instrument: Trading pair (e.g., BTC-USD)

  • side: LONG or SHORT

  • size: Position size in base asset

  • stopPrice: Optional maximum acceptable price

Execution Flow:

  1. Validation of parameters and margin

  2. Oracle price aggregation

  3. Hybrid Order Router analysis

  4. Venue split determination

  5. Atomic execution

  6. Position update with weighted average entry

Last updated