Lighter icon

Lighter

Interact with Lighter (zkLighter) DEX API - High-performance perpetuals trading

Trading → Create Market Order

AI-generated

Summary

Post a market order to the Lighter trading backend with specified market index, side, size, and optional slippage and reduce-only settings.

Inputs

  • main (required) — The node processes one item and sends a single order request to the backend.

Output shape

json

Returns the trading backend's JSON response as a paired item containing the order result.

Examples

Example 1: Create a market buy order for ETH with 0.5 size and 0.5% slippage tolerance.

tradingMarketIndex: 0, tradingSide: 'buy', tradingSize: 0.5, tradingSlippage: 0.5, tradingReduceOnly: false

Links

Discussion