Order Types Overview

Roxom supports four main order types, each designed for different trading strategies and market conditions.

Market Orders

Execute immediately at the current market price.

Characteristics

  • Execution: Immediate (fills against existing orders in the order book)
  • Price: Not specified (takes the best available price)
  • Guarantee: Execution is guaranteed (if sufficient liquidity exists)
  • Priority: Highest execution priority

When to Use

  • Immediate execution is more important than price
  • High liquidity markets where slippage is minimal
  • Emergency exits from positions
  • Small order sizes relative to market depth

Example

{
  "symbol": "OIL-BTC",
  "instType": "perpetual",
  "side": "buy",
  "orderType": "market",
  "qty": "100"
}

Limit Orders

Execute only at a specified price or better.

Characteristics

  • Execution: Only at the specified price or better
  • Price: User-specified limit price
  • Guarantee: Price is guaranteed, execution is not
  • Priority: Price-time priority in the order book

When to Use

  • Price control is important
  • Patient trading where timing is flexible
  • Market making strategies
  • Large orders to minimize market impact

Example

{
  "symbol": "OIL-BTC",
  "instType": "perpetual",
  "side": "buy",
  "orderType": "limit",
  "qty": "100",
  "px": "50000",
  "timeInForce": "gtc"
}

Stop Orders

Market orders triggered when a stop price is reached.

Characteristics

  • Execution: Becomes a market order when stop price is hit
  • Price: Stop price triggers the order
  • Use Case: Risk management and momentum trading
  • Direction: Stop price is typically worse than current market

When to Use

  • Stop losses to limit downside risk
  • Breakout trading when price moves beyond resistance/support
  • Risk management for existing positions
  • Automated exits based on price movement

Example

{
  "symbol": "OIL-BTC",
  "instType": "perpetual",
  "side": "sell",
  "orderType": "stop",
  "qty": "100",
  "triggerPx": "49000"
}

Stop-Limit Orders

Limit orders triggered when a stop price is reached.

Characteristics

  • Execution: Becomes a limit order when stop price is hit
  • Price: Both stop price (trigger) and limit price (execution)
  • Control: Combines stop trigger with price protection
  • Risk: May not execute if market gaps past limit price

When to Use

  • Price protection with stop functionality
  • Controlled exits where execution price matters
  • Risk management with price limits
  • Volatile markets where gaps are common

Example

{
  "symbol": "OIL-BTC",
  "instType": "perpetual",
  "side": "sell",
  "orderType": "stoplimit",
  "qty": "100",
  "triggerPx": "49000",
  "px": "48900"
}

Order Comparison

Order TypeExecution SpeedPrice ControlExecution Guarantee
MarketImmediateNoneHigh
LimitVariableFullNone
StopImmediate (when triggered)NoneMedium
Stop-LimitVariable (when triggered)FullLow

Trading Strategies

Best Practices