The user will be required to freeze the order margin when the transaction is commissioned. It has the following rules:
The Order Margin required to buy = price * quantity * order margin rate
The Order Margin required to sell = Max (price, bid) * quantity * order margin rate
If the user's order does not increase the number of positions, these orders will not need to freeze the Order Margin.
If the user has a buy commission and a sell commission in the depth at the same time, the Order Margin will be frozen for the sell order that cannot reduce the position. In addition, if the number of buy orders is more than the number of sell orders, the margin will be frozen for the excess portion of the buy commission. For example, if a user simultaneously entrusts to buy a 20BTC futures contract at 1,000 USDT and sells a 15BTC futures contract at 2,000 USDT, the user needs a 5BTC buy contract and a 15BTC sell contract Order Margin.
In addition, since the JEX futures contract uses a fair mark price, it means that the Order Margin needs to be increased in part, that is, the price of the buy order is higher than the fair mark price, or the price of the sell order is lower than the fair mark price, then the user needs to freeze more Order Margin. The margin has been added to the difference between the value of the order price and the fair mark price, Order Margin added= (order price – fair mark price) * quantity. For example, if the current market has a fair mark price of 1,000 USDT and a user buys a 10BTC futures contract at 1,010 USDT, the required Order Margin = 1,010 USDT * 10 BTC * The Order Margin rate + ( 1,010 USDT – 1,000 USDT ) * 10 BTC.
Note that when the number of orders and the number of positions are calculated by substituting the formula, the long/buy is positive and the short/sell is negative.
Find us on