Margin and Shorts
Last updated
Last updated
Aside from Tunnl's unique off-chain/on-chain functionality, "" is another unique feature that allows you to place margin and short orders, just like in centralized exchanges.
In order to initiate a margin or short trade you follow very similar steps to placing an order trade, but you enable margin by sliding the "Enable Margin and Shorts" slider where you normally place trades. Please note that after you place a margin or a short order, you will not be able to disable this slider until you have paid back all borrowed funds ("Liabilities").
Once margin is enabled, you will be able to place orders larger than your current balance or sell assets you do not own by using funds borrowed from other users on the exchange. You will also notice that your maximum buy/sell amount will be modified to show how much of an asset you are now able to buy or short using margin. Another field that will appear will be your "Portfolio Liquidation Level" which shows how close you are to being liquidated if your "Total Collateral Value" drops below that price.
The following are the variables that affect how much margin you are able to use and what your liquidation point is:
Liabilities are borrowed funds, either attained through margin trading or directly using the borrow functionality of Tunnl. Users pay on their liabilities, denominated in the token of the liability, on an hourly basis until their liabilities are paid back. The interest payments are automatically added to the user's liabilities.
Each token has a "Collateral Multiplier" assigned to it depending on the risk assessment of that token. The lower the collateral multiplier, the lower value compared to it's actual value that the token is assigned.
Collateral Value = Token Amount * Token Price * Token Multiplier
The "Total Collateral Value" takes into account all of your assets' collateral value, minus your liabilities, in stablecoin value.
Total Collateral Value = (Token Amount in Assets * Token Price * Collateral Multiplier) - (Token Amount in Liabilities * Token Price)
Each token has its own "Initial Margin Requirement". The initial margin requirement is a multiplier, which is multiplied by the dollar value of the total liabilities of an asset a user has. It is calculated every time a user borrows a token. This determines how much of a token you are able to borrow when opening up a margin position or borrowing directly.
Each token has its own "Maintenance Margin Requirement". The maintenance margin requirement is a multiplier, which is multiplied by the dollar value of the total liabilities of an asset a user has. This determines what collateral value your portfolio must stay above in order not to get liquidated.
When a user has more than one token as a liability, the sum of their initial margin requirements is used to determine their Aggregate Initial Margin Requirement. In order to borrow or open new margin positions, their Total Collateral Value must always remain above the Aggregate Initial Margin Requirement.
When a user has more than one token as a liability, the sum of their maintenance margin requirements is used to determine their Aggregate Maintenance Margin Requirement. A user's Total Collateral Value must always remain above the Aggregate Maintenance Margin Requirement in order to avoid liquidations.