Order Types

Order types on Metal X Trading DEX are classified into:

  • Orderbook (OrderType = 0)

  • Limit Order (OrderType = 1)

    • Market Buy: Price = 9223372036854775806 OR Market Sell: Price = 1

      Note: Above mentioned prices are raw prices, actual prices in API are divided by 10^(ask precision)

  • Stop Loss order (OrderType = 2)

  • Takep Profit order (OrderType = 3)

Orderbook: It represents an order is sitting in orderbook and waiting to get matched. The user can not place order directly under this category. The order gets promoted to this type after processing from the below categories.

Limit Order: It is an order with limit price placed in the orderq. This order will promoted into orderbook or executed/fills on reaching the limit price(it can be less for buy ordes or more for sell orders)

Market Order: Market orders are a special type of limit order that are executed/fills as quickly as possible after processing on XPR Network. It is applicable for both buy and sell orders.

Stoploss Order: Stoploss order is an order that gives an opportunity to the user/trader to choose maximum amount of loose on the trade. Both limit and stoploss price has to be selected on the trade. Also this order is not guaranteed to be executed.

Takeprofit Order: Takeprofit order is an order that gives an opportunity to the user/trader to choose minimum profit on trade. Both limit and takeprofit price has to be selected on the trade. Also this order is not guaranteed to be executed.

Last updated