Traders should ensure that they have a minimum fund in their wallet balance before opening a position. The cost required to open a position includes the initial margin and open loss (if any). Open loss occurs when the order price is unfavourable to the traders i.e. mark price is lower than the order price for a long order. Binance includes open loss as one of the costs required to open a position to avoid forced liquidation when the traders place the order. If the open loss is not included as one of the costs required to open a position, there is a high probability that users’ positions will get liquidated immediately once they have placed such an order.
Cost = Initial Margin + Open Loss (if any)
1. Cost Required to Open a LIMIT or STOP order
Step 1: Calculate the initial margin
Initial Margin
= Notional Value / Leverage
= (34,764.02 x 1 BTC) / 20
= 1,738.20
Step 2: Calculate Open Loss
Open Loss
= Number of Contract x Absolute Value {min[0, direction of order x (mark price - order price)]}
*direction of order: 1 for long order;-1 for short order
(i) Open loss of long order
= Number of Contract x Absolute Value {min[0, direction of order x (mark price - order price)]}
= 1 x Absolute Value {min[0, 1 x (3,4770.73 - 34764.02)]}
= 1 x Absolute Value {min[0, 6.71]}
= 1 x 0
= 0
There is no open loss when the user opens a long order.
(ii) Open loss of short order
= Number of Contract x Absolute Value {min[0, direction of order x (mark price - order price)]}
= 1 x Absolute Value {min[0, -1 x (3,4770.73 - 34764.02)]}
= 1 x Absolute Value {min[0, -6.71]}
= 1 x 6.71
= 6.71
There is an open loss when the user opens a short order.
Step 3: Calculate the cost required to open a position
Since the long order has no open loss, thus the cost required to open a long position is equivalent to the initial margin.
(i) Cost Required to Open a Long Position
= 1,738.20 + 0
= 1,738.20
Short order has an open loss, thus the cost required to open a short position is higher as we need to take open loss into consideration besides the initial margin.
(ii) Cost Required to Open a Short Position
= 1,738.20 + 6.54
= 1744.70 (rounding difference)
2. Cost Required to Open a MARKET order
Step 1: Calculate assuming price
Long order: assuming price = ask[0] * (1 + 0.05%) , Open order: assuming price = max(bid[0], mark price)
(i) Assuming price of long order
= ask[0] * (1 + 0.05%)
=34,808.01 * (1 + 0.05%)
= 34,825.41401
(ii) Assuming price of short order
= max(bid[0], mark price)
= max (34,808.02, 34,814.34)
= 34,814.34
*[0]:Level 1 price
Step 2: Calculate the initial margin
Initial Margin = Notional Value / Leverage
(i) Initial margin of long order
= Assuming price of long order * Number of Contract / Leverage
= 34,825.41401 * 0.2 / 20
= 348.2541401
(ii) Initial margin of short order
= Assuming price of short order * Number of Contract / Leverage
= 34,814.34 * 0.2 / 20
= 348.1434
Step 3: Calculate Open Loss
Open Loss
= Number of Contract x Absolute Value {min[0, direction of order x (mark price - order price)]}
*direction of order: 1 for long order;-1 for short order
(i) Open loss of long order
= Number of Contract x Absolute Value {min[0, direction of order x (mark price - order price)]}
= 0.2 x Absolute Value {min[0, 1 x (34814.34 - 34,825.41401)]}
= 0.2 x Absolute Value {min[0, -11.07401]}
= 0.2 x 11.07401
= 2.214802
There is an open loss when the user opens a long order.
(ii) Open loss of short order
= Number of Contract x Absolute Value {min[0, direction of order x (mark price - order price)]}
= 0.2 x Absolute Value {min[0, -1 x (34814.34 - 34,814.34)]}
= 0.2 x Absolute Value {min[0, 0]}
= 0.2 x 0
= 0
There is no open loss when the user opens a short order.
Step 4: Calculate the cost required to open a position
Long order has an open loss, thus the cost required to open a long position is higher as we need to take open loss into consideration besides the initial margin.
(i) Cost Required to Open a Long Position
= 348.2541401 + 2.214802
= 350.4689 (rounding difference)
Since the short order has no open loss, thus the cost required to open a short position is equivalent to the initial margin.
(ii) Cost Required to Open a Short Position
= 348.1434 + 0
= 348.1434 (rounding difference)
CoinTiger team
2020/8/26
Download for Android
Download for iOS
CoinTiger Community
Telegram Channels
English: https://t.me/cointiger_en
Mandarin: https://t.me/CoinTiger_cn(中文群)
Vietnam: https://t.me/CoinTiger_vn(Tiếng Việt)
Russian: https://t.me/Cointiger_russian(Россиею)
Arabic: https://t.me/cointiger_ar(العربية)
Turkish: https://t.me/CoinTiger_Turkish(Türkçe)
Korean: https://t.me/cointiger_kr (한국어)
Japanese: https://t.me/CoinTiger_JP(日本語)
Indonesian: https://t.me/cointiger_indonesia(Indonesian)
India: https://t.me/CoinTiger_Hindi(हिंदी)
Nigiria: https://t.me/CoinTiger_Africa
Bangali: https://t.me/CoinTiger_Bangli
Portuguese: https://t.me/cointiger_brazil
Thai: https://t.me/cointiger_thai (คนไทย)
Philipines: https://t.me/cointiger_ph
French: https://t.me/CoinTiger_French
Italian: https://t.me/CoinTiger_Italian
Announcement Channel: http://t.me/cointiger_annoucements
Twitter
English: https://twitter.com/CoinTigerEX
Turkish: https://twitter.com/CoinTigerTR
Indonesian: https://twitter.com/CointigerID
Others
Facebook: https://www.facebook.com/CoinTigerEX
Reddit: https://www.reddit.com/r/CoinTigerExchange
Medium: https://medium.com/cointiger