1. Margin Trading Glossary:
This section aims to provide a glossary to explain all the commonly used terms in margin trading.
1.1 Balances:
- Total Balance: CoinDCX used a common wallet system for spot and margin trading. Total assets value is the total sum of tokens in your CoinDCX wallet Account for Spot, including available balance and balance on hold (locked balance).
- Available Balance: The total amount of tokens that are currently available for trading either in Spot Trading and Margin Trading. This balance can be used in deposits/withdrawals of funds without any restriction./li>
- Locked Balance The amount of tokens which is unavailable for creating orders, usually refers to the tokens that are currently in use for open orders.
1.2 Leverage
- Borrowing limit: It is the max quantity of tokens available to borrow of the corresponding token pairs. The leverage available is common to all the platform users and CoinDCX would determine the maximum leverage (range varies from 1x to 5x) based on volatility, funds availability and liquidity in the selected token pairs.
1.3 Stop loss and forced liquidation
Every margin order has its own liquidation price which depends on the leverage used for the respective order. The maximum loss that a user can incur is the balance locked for a margin order. If a situation for liquidation arises, CoinDCX will place a market sell order immediately.
CoinDCX will apply the following rules for liquidation of a margin order –
a)Long:
i) Ideal liquidation price = (Entry Price – Entry Price/Leverage)
ii) A safety factor of 7.5% (wrt entry price) has been applied to take market slippage and order placement latency into account. This will prevent bankruptcy of the user’s account
iii) So, Actual Liquidation Price = Ideal Liquidation Price + (0.075 * Entry Price), which is rounded up according to currency’s price precision
b) Short:
i) Ideal liquidation price = (Entry Price + Entry Price/Leverage)
ii) A safety factor of 7.5% (wrt entry price) has been applied to take market slippage and order placement latency into account. This will prevent bankruptcy of the user’s account
iii) So, Actual Liquidation Price = Ideal Liquidation Price – (0.075 * Entry Price), which is rounded down according to currency’s price precision
1.4 Multiple target orders
Previously, a single order contained a single entry and a single target (exit) order, meaning that suppose you have 100 XRP long, then you can just specify a single target price where those 100 XRP would be sold at. But now, Margin trading supports multiple target orders, meaning that you can decide to sell those 100 XRP at different price points in parts. For example, you may sell 40 XRP at 8000 sats and remaining 60 XRP at 7000 sats. So you have finer control over your target orders and you may utilize multiple price points to close your position in parts, with individual control (for editing or cancelling each [part] target order).
2. Margin Trading
2.1 Definition of Margin Trading:
Margin Trading is a strategy that allows you to trade more tokens than you would be able to do normally and can yield a huge profit if executed correctly.
It’s like a loan from your broker or exchange. For ex: with 0.10 BTC balance in your account, you can take a position of 0.30 BTC (with 3x leverage).
2.2 Margin Position Types:
Long Position: In this position, funds are bought by the trader and then sold at the Target Price. Traders open a long position in the hope that the price will go up in the future.
Eg. If a trader, trading in the XRP/BTC pair, longs 1000 XRP at 2x leverage. If the BTC equivalent of 1000 XRP is 0.09 BTC (considering XRP/BTC is at 0.00009000), then the exchange collects a collateral of 0.045 BTC only. Thus allowing 2x leverage.
In this long position, exchange forwarded 0.045 BTC to the trader for buying 500 XRP, in addition to the 0.045 BTC held by the trader.
Short Position: In this position, funds (that the trader doesn’t own) are sold first and then bought at a later time. So when you open a short position, the exchange sells the crypto on your behalf and you owe the quantity of crypto involved in the trade, to the exchange. At a later point, you return this obligation by buying the coin at a lower price.
Traders open a short position in the hope that the price will go down in the future. Eg. If a trader, trading in the XRP/BTC pair, shorts 1000 XRP at 4x leverage. If the BTC equivalent of 1000 XRP is 0.09 BTC (considering XRP/BTC is at 0.00009000), then the exchange lends the trader 1000 XRP against a collateral of 0.0225 BTC.
The trader owes the 1000 XRP to the exchange and can return this obligation at a later time, by buying it at a lower price.
2.3 Available Order Types:
Limit Margin Order: This is a limit order with leverage. Elements of this order like Stop Loss Price, Target Price are the same as Market Order. Leverage can be selected by toggling between 1x to 4x.
Market Margin Order: This is a market order with leverage. Elements of this order are – leverage, Target Price and Stop Price.
Other Terminologies in Margin Trading:
Price: This is the price at which the trader seeks to gain entry/ open position in the trade.
Eg. If a trader plans to long 0.2 BTC (BTC/USDT pair), then the trader first buys 0.2 BTC. The price at which the trader bought 0.2 BTC, is the open price/ price.
Target Price: The price at which the trader plans to buy/sell or close the order position is called the Target Price. When the Target price is hit, the trade is closed and the trader’s funds are settled according to the P&L incurred. Target price feature is available if the trader checks the Bracket order checkbox.
SL Price: The price at which the trader wishes to Stop Loss is the SL Price.
Position Quantity: A position is the quantity of crypto involved in trade. There are two types of positions: Long and Short. Depending on market trends, movements and fluctuations, a position can be profitable or unprofitable.
P&L: The Profit or Loss is the indicative Profit or Loss in an open position. Note that, until the position is closed, the Profit or Loss is not actually realized or added/deducted from the trader’s balance.
Initial Margin: Initial margin is the initial price that the investor must pay for with his own collateral. Initial margin depends on the leverage taken.
Margin Taken: Margin Taken is the fund lended by the exchange to the trader in exchange of the collateral.
2.4 How to open a Margin Position:
2.4.1 How to open a long position:
- Go to the Trading page > Select Margin > Select the desired pair.
- Set up a Margin Buy order (specify the quantity, leverage, price).
- (optional) If you select a BO (Bracket Order) fill in other details like Target Price and SL (Stop Loss Price).
- Place your order by clicking on Long.
When you want to close the position, hover over your trade, you’ll see the option to Exit position, edit or cancel. On selecting exit, your exit will be confirmed at the current market price. Alternately, when your Stop Loss price hits, your position will be closed. The borrowed funds will be repaid and the profit/ loss will be adjusted and settled in your account.
Few Examples:
- Long with 4x leverage
If a trader, trading in the XRP/BTC pair, longs 1000 XRP at 4x leverage. If the BTC equivalent of 1000 XRP is 0.09 BTC (considering XRP/BTC is at a price of 0.00009000), then the exchange collects a collateral of 0.0225 BTC only. Thus allowing 4x leverage.
In this long position, exchange forwarded 0.0675 BTC to the trader for buying 1000 XRP, in addition to the 0.0225 BTC held by the trader.
- Short with 3x leverage
If a trader, trading in the XRP/BTC pair, shorts 1000 XRP at 3x leverage. If the BTC equivalent of 1000 XRP is 0.09 BTC (considering XRP/BTC is at 0.00009000), then the exchange lends the trader 1000 XRP against a collateral of 0.03 BTC.
The trader owes the funds to the exchange and can return this obligation at a later time, by buying it at a lower price.
2.5 How to close a Margin Position:
2.5.1 How to add a [partial] exit order for an open position:
- For a given position, click on ‘Add Targets’.
- If this is your first target order for this position, it would directly open a form where you can add a target order of market or limit type for closing position.
- If this position already has some target orders, it would be listed there, which can be cancelled or edited (depending on the order type and order status).
- Specify a quantity and price (not needed for market order type) and click submit to place the request.
- After the request goes through successfully, the list should refresh showing your updated target orders.
Example:
- Long with 4x leverage
If a trader, trading in the XRP/BTC pair, longs 1000 XRP at 4x leverage with an entry price of 0.00008000
The user may also specify 2 target orders of this position: 500 XRP at 0.00008100 and other 500 XRP at 0.00008200
- Short with 2x leverage
If a trader, trading in the XRP/BTC pair, shorts 1000 XRP at 4x leverage with an entry price of 0.00008000
The user may also specify 3 target orders of this position: 300 XRP at 0.00007800 and other 300 XRP at 0.00007600, and the remaining 400 XRP at 0.00007500
2.6 Changing margin (or changing leverage):
For a given open order, you can add or remove margin to decrease or increase its effective leverage, respectively. This could be used to prevent your order from hitting the StopLoss due to sudden volatility in the market. This could be useful where an order comes very close to liquidation, but the trader is confident of the bounce-back of the market price and wants to avoid liquidation by adding more margin (thus increasing the hard liquidation price limit). It could also be used when he sees a better opportunity and wants to place a new order but doesn’t has the funds to do so, thus reducing the margin allocated to another open order (which leads to freeing up some funds in his wallet).
2.6.1 How to add margin (or reduce leverage):
- For a given open order, click on ‘Add Margin’.
- Enter the additional amount that you wish to add as margin to that particular order.
- You may check the new [estimated] hard liquidation price as well as the new [estimated] leverage after entering the amount (but before submitting).
- Make sure that the amount you’re trying to add is available in your wallet.
- Submit to place the add margin request.
- After the request goes through successfully, the specified amount should be deducted from your wallet, while the hard liquidation price and leverage of your order should have been changed.
2.6.2 How to remove margin (or increase leverage):
- For a given open order, click on ‘Remove Margin’.
- Enter the amount that you wish to remove from the order’s initial margin.
- You may check the new [estimated] hard liquidation price as well as the new [estimated] leverage after entering the amount.
- Make sure that the new hard liquidation price is not very close to the current market price (to avoid instant liquidation).
- Submit to place the remove margin request.
- After the request goes through successfully, the specified amount should appear as available balance in your wallet, while the hard liquidation price and leverage of your order should have been changed.
2.6.3 Important Points to keep in mind when changing margin:
- Always check the updated StopLoss price and updated leverage after the request goes through as the values show before placing the request are just an estimation.
- If the StopLoss price of the order was never set manually (or it is equal to the hard liquidation price), then it will also be changed to be equal to the updated hard liquidation price.
- If the StopLoss price of the order lies beyond the hard liquidation price after changing the margin, then it will also be changed to be equal to the updated hard liquidation price.
- The change margin request won’t go through if it results in effective leverage beyond the extremes for a given market. Thus, it cannot be less than 1x or greater than Zx (where Z depends on the market, typical example being 4x or 5x).
2.6.4 Example of changing margin:
Suppose a trader, trading in the XRP/BTC pair, longs 700 XRP at 4x leverage with an entry price of 0.00003500 and an SL price of 0.00003000. His hard liquidation price comes to, say 0.00002800, while his [initial] margin locked is 0.0058 BTC. Now, due to a sudden fall in the market, the market price comes to about 0.00003100. He changes the SL price to from 0.00003000 to 0.00002850. Now, if the market price continues to fall, but trader is confident that it will rise back again, he may decide to add some more margin to push his hard liquidation price even further. Say he adds another margin of 0.001 BTC, which pushes the hard liquidation price to about 0.00002500. Note that his actual SL price still remains 0.00002850, even after adding the margin. Only the hard liquidation price has changed. So now he should edit his SL price to up to 0.00002500 manually, which he couldn’t have done before adding the margin (due to old hard liquidation price being 0.00002800).
3. Trade Charges, P&L Calculation Schema:
3.1 Fees for Trading
Total fee = Entry fee + Exit Fee
Entry fee = (Quantity * Avg entry price) * (fee percent)/100
Exit fee = (Quantity * Avg exit price) * (fee percent)/100
3.2 Interest Calculation
CoinDCX automatically gives you the additional margin and charges interest @0.05% per day (~0.002% per hour). Additional margin is the amount a trader has borrowed from the exchange to fulfill a particular order. When the position is open for more than 1 Hour, the interest expense is calculated based on the following formula:
Interest Charged = (Interest rate Per Hour * hours * additional margin) / 100
where Additional margin = (Order Value – Locked Balance for the order).
In case of a bracket order and if your order is partially settled, you will be only charged for the margin which is remaining on your open order, only for the duration the order is open on DCXmargin. In case you add more margin in an open position, the interest rate will only be charged on the updated (lesser) borrowed amount.
3.3 P&L Calculation
Long :-
Gross P&L = Quantity * (Avg Exit price – Avg Entry price)
Profit = Gross P&L – Total fee – Interest charged
Short :-
Gross P&L = Quantity * (Avg Entry price – Avg Exit price)
Profit = Gross P&L – Total fee – Interest charged
Please note that we show Gross P&L and Net P&L on the website
4. Margin Trading Rules
4.1 General Rules:
4.1.1 These rules are formulated under a lawful, fair and transparent way to maintain reasonable control of the lending or borrowing of the digital asset and margin trading, preserve an orderly market, and protect the legal rights of all investors.
4.1.2 The loan and margin trading stated in this document is the investment behavior which an investor provides collateral to CoinDCX (“We”, “Us”, “Our platform”, “Our”) to borrow assets for trading.
4.1.3 All loan and margin trading on https://info.coindcx.com shall comply with the rules stated in this document. Other activities not stated in this document shall comply with “CoinDCX Terms of Service” and other rules set on the website https://info.coindcx.com
4.1.4 We provide information release, management and risk control services for token lending. However, there have been no promises, guarantees or warranties suggesting that any trading will result in a profit or will not result in a loss. Investors shall carefully consider whether such an investment is suitable in light of their own financial position and investment objectives, and invest responsibly at their sole discretion.
4.2 Additional Terms
4.2.1 Investors shall comply with local regulations and law as well as the related rules of trading and margin trading of https://info.coindcx.com. We reserve the right to suspend or cancel any user’s access to margin trading, take over the account, force-liquidate all positions or any related risk control measure when deemed necessary to maintain an orderly market.
4.2.2 The terms not less than, within, not more than are all inclusive terms and the terms less than, beyond and over/below are exclusive terms.
4.2.3 The terms are established by our company. This document or any further amendments are in effect immediately after make known through our blog/FAQ/Official communication channels/Website.
4.2.4 We reserve the right of interpretation of this document
4.2.5 The terms are implemented since January 16, 2019
4.2.6 Positions open beyond 30 days are liable to be automatically closed by the system. You can take the position again.
5. Margin Trading Mechanism
5.1 Entry Order:
5.1.1 Entry order is placed as soon as the user creates an order.
5.1.2 Entry order is filled according to market conditions, based on order-type the user specified while placing the order (Market, Limit or StopLimit order).
5.1.3 Entry order is placed as a Buy order in case of Long margin order and as a Sell order in case of Short margin order.
5.2 Target Order:
5.2.1 Target order is placed only after the entire entry order completes.
5.2.2 Target order can be placed as a market order or as a limit order, as specified in the multiple target orders.
5.2.3 If no individual target order is specified, and a target price is present for the position, then at the time the position opens (entry is completed), a target order is placed as a limit order at specified target price for the entire open quantity.
5.2.4 Target order is always placed as an order on the opposite side (i.e. Sell order in case of Long margin order, Buy order in case of Short margin Order).
5.2.5 Target order is not placed for partial (or zero) filled entry orders, to avoid fragmentation of orders based on each trade for entry order.
5.2.6 In case of multiple target orders for a given position, the quantity of each of those orders should satisfy the basic validations of a normal order, such as min quantity and max quantity as specified in the currency pair.
5.3 StopLoss (SL) Order:
5.3.1 SL order is placed only when the last trading price or a market crosses the specified SL price of the margin order.
5.3.2 SL order is always placed as a Market order, hence in most cases, it leads to some slippage. So, if XX is the specified SL price for a margin order, it does not guarantee that the exit will happen exactly at that price XX.
5.3.3 SL order is always placed as an order on the opposite side (i.e. Sell order in case of Long margin order, Buy order in case of Short margin Order).
5.3.4 SL order is not placed for partial (or zero) filled entry orders, to avoid fragmentation of orders based on each trade for entry order.
5.4 Exit Order:
5.4.1 Exit order is placed only when the user clicks on the ‘Exit’ button for a margin order.
5.4.2 Exit order is always (and immediately) placed as a Market order, hence in most cases, it leads to some slippage.
5.4.3 Exit order is always placed as an order on the opposite side (i.e. Sell order in case of Long margin order, Buy order in case of Short margin Order).
5.4.4 Exit order is not valid for partial (or zero) filled entry orders, to avoid fragmentation of orders based on each trade for entry order. To exit the position in such cases, use the ‘Cancel’ option for the margin order.