Execute market orders

Execute a "marketable limit order" against the orderbook with built-in slippage protection.

Key Features:

  • Slippage Protection: Requires limit_price to prevent execution at unfavorable prices
  • Immediate Execution: Fills immediately against available liquidity (IOC/FOK)
  • Multi-Asset: Supports both options and perpetual futures

Unlike traditional market orders, Kyan's market orders won't execute beyond your limit_price, protecting you from excessive slippage during volatile conditions.

Important Constraints:

  • Price Increment: The limit_price must be divisible by the minimum price increment for the base asset (see GET /api/v1/exchange_infoorderConstraints.priceIncrements)
  • Size Increment: Order size (contracts for options, amount for perpetuals) must be divisible by the size increment (see GET /api/v1/exchange_infoorderConstraints.options.sizeIncrements or orderConstraints.perpetuals.sizeIncrements)
  • Minimum Size: Order size must meet minimum requirements
  • Max Slippage: Order will be rejected if limit_price exceeds the maximum allowed slippage from fair value

Authentication Options:

  • Signature: Include signature and signature_deadline fields in the request
  • One-click session: Include x-one-click header with session hash (no signature needed)

When using one-click sessions, the signature fields can be omitted from the request.

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!