Introduction

UniDexV4 supports three main types of orders for opening positions: Limit Orders, Stop Market Orders, and Stop Limit Orders. For managing existing positions, traders can use Take Profit and Stop Loss orders. All orders on UniDexV4 are guaranteed to fill when conditions are met, as they are monitored by keepers every 2 seconds.

New Position Orders

Limit Orders

A limit order is an order to buy or sell at a specified price or better. The order will only execute at the limit price or a more favorable price.

How Limit Orders Work

Initial Market ConditionLong PositionShort Position
Limit Price < Mark PriceExecutes when Mark Price falls to Limit PriceExecutes immediately as Market Order
Limit Price > Mark PriceExecutes immediately as Market OrderExecutes when Mark Price rises to Limit Price

Limit orders help traders secure a specific entry or exit price, ensuring they never pay more than their desired price for a long position or sell for less than their desired price for a short position.

Stop Market Orders

A stop market order is an order that converts to a market order when a specified price level (the stop price) is reached.

How Stop Market Orders Work

Initial Market ConditionLong PositionShort Position
Stop Price < Mark PriceExecutes immediately as Market OrderExecutes when Mark Price falls to Stop Price
Stop Price > Mark PriceExecutes when Mark Price rises to Stop PriceExecutes immediately as Market Order

Stop market orders are commonly used as stop-loss orders to limit potential losses by executing at market price once the stop price is triggered.

Stop Limit Orders

A stop limit order combines features of both stop and limit orders. When the stop price is reached, it activates a limit order at the specified limit price.

Stop Price Activation

Initial Market ConditionLong PositionShort Position
Stop Price < Mark PriceExecutes immediately as Market OrderActivates Limit Order when Mark Price = Stop Price
Stop Price > Mark PriceActivates Limit Order when Mark Price = Stop PriceExecutes immediately as Market Order

Limit Order Execution After Stop Trigger

Once the stop price is reached and the limit order is activated, the following conditions apply:

Initial ConditionLong PositionShort Position
Stop Price < Limit PriceExecutes immediately as Market OrderExecutes when Mark Price rises to Limit Price
Stop Price > Limit PriceExecutes when Mark Price falls to Limit PriceExecutes immediately as Market Order

Position Management Orders

When you have an open position, you can set Take Profit and Stop Loss orders to automatically manage your position.

Take Profit Orders

Take Profit orders allow you to automatically close your position at a profitable price level.

Initial Market ConditionLong PositionShort Position
Take Profit < Mark PriceNot ApplicableExecutes when Mark Price = Take Profit
Take Profit > Mark PriceExecutes when Mark Price = Take ProfitNot Applicable

Stop Loss Orders

Stop Loss orders help protect against losses by automatically closing your position if the market moves against you.

Initial Market ConditionLong PositionShort Position
Stop Loss < Mark PriceExecutes when Mark Price = Stop LossNot Applicable
Stop Loss > Mark PriceNot ApplicableExecutes when Mark Price = Stop Loss

Both Take Profit and Stop Loss orders are crucial risk management tools that help automate your trading strategy and protect your positions.

Guaranteed Execution

All orders on UniDexV4 are guaranteed to execute when their conditions are met. The system employs dedicated keepers that scan for fillable orders every 2 seconds, ensuring reliable and timely execution of your trades.

Key Terms

  • Mark Price: The current market price used as a reference for triggering orders
  • Limit Price: The maximum/minimum price at which you’re willing to buy/sell
  • Stop Price: The price that triggers the activation of a stop or stop limit order
  • Take Profit: A price level at which your position will automatically close for a profit
  • Stop Loss: A price level at which your position will automatically close to limit losses

Best Practices

  1. Limit Orders: Use when you want to ensure you don’t pay more than a specific price
  2. Stop Market Orders: Use when you want guaranteed execution after a price level is breached
  3. Stop Limit Orders: Use when you want to limit losses but also maintain some price control
  4. Take Profit Orders: Set these when opening a position to automatically secure profits
  5. Stop Loss Orders: Always consider setting these to protect against adverse market movements

While execution is guaranteed when conditions are met, market conditions can change rapidly. Monitor your positions and adjust your orders as needed to align with your trading strategy.