How to make a match?
BKEX system will make a match according to the principle of price priority and time priority. "Buy/Long" is the buy order direction, and "Sell/Short" is the sell order direction.
The price of the buy order is the highest, the earliest time is the first price of buy order, the price of sell order is the lowest, and the earliest time is the first of sell order. When the first price of buy order is greater than or equal to the first price of sell order, the trading can be matched.
What happens after the match is successful?
If the buy/sell order with the same direction as the held position is successfully matched (position added), the system will increase the position of the corresponding contract in the corresponding direction, and recalculate the average position price and estimated liquidation price.
If the buy/sell order in the opposite direction to the held position is successfully matched (reduced position), the system will reduce the position of the corresponding contract in the corresponding direction, the average position price and estimated liquidation price will remain unchanged.
How to Calculate the Average Position Price?
Average position price = (original positions * original position average price + new positions * average trading price of new positions) / (original positions + new positions)
Average trading price of newly opened positions = (number of futures at trading price 1 * number of futures at trading price 1 + number of contracts at transaction price 2 * number of futures at trading price 2 + ... ) / number of newly opened positions
Number of newly opened positions = number of futures at trading price 1 + number of futures at trading price 2 + ...
Example of calculate the average position price:
The current latest trading price is 6,000USDT. A trader holds a long one-way position futures with 6 BTC, and then the trader adds 5 BTC to buy futures. The trading prices are: 5,800USDT for 1 dealing and 5,700USDT for 1 dealing. 1, 5,600USDT for dealing 3.
Then the average trading price of the five futures = (1 * 5,800 + 1 * 5,700 + 3 * 5,600) / 5=5660.
Then the average price of the new position is = ( 6 * 6,000 + 5 * 5660) / (5+6) = 5840.
The new position size is = 5 + 6 = 11.
Comments
0 comments
Please sign in to leave a comment.