Pricing with margin
The formulas below present the price at which a trader could open a long position at a price PO,L or a short position at a price PO,S with an initial margin M (other notations have been introduced in ).
Side
Price to open a position
Example
Let's consider a contract on ETHDAI expiring in 3 months (T=1) and where the traders posts 50DAI as margin:
Given one could borrow DAI at a yearly fixed rate of rQ,b=10.10%, lend ETH at a yearly fixed rate rB,l=2.90%and buy ETH on the spot market at SL=100.10DAI then the price at which a trader could open a long a position is:
PO,L=100.10∗(1+0.02901+0.1010)0.25−50∗[(1+0.1010)0.25−1]=100.59DAI
Given one could borrow ETH at a yearly fixed rate of rB,b=3.10%, lend DAI at a yearly fixed rate of rQ,l=9.90%and sell ETH on the spot market at SS=99.90DAI then the price at which a trader could open a short position is:
PO,S=99.90∗(1+0.03101+0.0990)0.25+50∗[(1+0.0990)0.25−1]=102.70DAI
Demonstration
Long
Let's consider that a trader wants to buy 1 expirable (the numerical values are taken from the above example). In this demonstration, we will present the steps to replicate the cash flows of a expirable position. Let's figure out the price of the expirable, i.e. the DAI money needed, to get 1 ETH at expiry:
Short
Let's consider a trader who wants to sell 1 expirable (the numerical values are taken from the example above). This means she would give 1 ETH at expiry, let's figure out the steps and how much money she would need to receive at expiry:
Pricing with margin ratio
Side
Price to open a position
Example
1. To receive 1 ETH at expiry, the trader needs to lend (1+rB,l)T1ETH, i.e. 0.9929ETH
2. To get that ETH, the trader first swaps (1+rB,l)TSLDAI, i.e. 99.39DAI.
3. Since the trader has already some margin, she only needs to borrow (1+rB,l)TSL−MDAI, i.e. 49.39DAI.
4. The debt D the trader owes at expiry (principal + interest) is: D=[(1+rB,l)TSL−M]∗(1+rQ,b)TDAI, i.e. D=50.59DAI.
5. Hence, the money needed to receive 1 ETH at expiry is the sum of the debt and the margin provided: [(1+rB,l)TSL−M]∗(1+rQ,b)T+MDAI or SL∗(1+rB,l1+rQ,b)T−M∗[(1+rQ,b)T−1]DAI, i.e. 100.59DAI.
1. The trader will give 1 ETH at expiry to reimburse a debt. Hence the trader borrows (1+rB,b)T1ETH, i.e. 0.9924ETH.
2. The trader swaps the ETH to get (1+rB,b)TSSDAI, i.e. 99.14DAI.
3. The trader lends the DAI from the swap and her margin. At expiry the trader receives an amount L=[(1+rB,b)TSS+M]∗(1+rQ,l)TDAI, i.e. L=152.70DAI.
4. The amount of money the trader will receive at expiry, which is also the price of the expirable, is the difference between the amount L and the margin: [(1+rB,b)TSS+M]∗(1+rQ,l)T−MDAI or SS∗(1+rB,b1+rQ,l)T+M∗[(1+rQ,l)T−1]DAI, i.e. 102.70DAI.
the margin for a long position could be expressed as M=MR∗PO,L, e.g. if the price to open a long position is PO,L=100DAI and if the trader wants a margin ratio of 50%, then the required margin is M=50DAI
the margin for a short position could be expressed as M=MR∗PO,S, e.g. if the price to open a short position is PO,S=100DAI and if the trader wants a margin ratio of 50%, then the required margin is M=50DAI
Replacing the margin M in the main to open a position, we find new expressions depending on the collaterisation ratio MR :
Let's consider a contract on ETHDAI expiring in 3 months (T=1) where the trader puts a 50%MR:
Given one could borrow DAI at a yearly fixed rate of rQ,b=10.10%, lend ETH at a yearly fixed rate rB,l=2.90% and buy ETH on the spot market at SL=100.10DAIthen the price at which a trader could open a long a position is:
PO,L=100.10∗(1.02901.1010)0.25∗1+0.5∗[(1.1010)0.25−1]1=100.68DAI
Given one could borrow ETH at a yearly fixed rate of rB,b=3.10%, lend DAI at a yearly fixed rate of rQ,l=9.90%, and sell ETH on the spot market at SS=99.90DAI then the price at which a trader could open a short position is:
PO,S=99.90∗(1.03101.0990)0.25∗1−0.5∗[(1.0990)0.25−1]1=100.31DAI
🤓
PO,L=SL∗(1+rB,l1+rQ,b)T−M∗[(1+rQ,b)T−1] PO,S=SS∗(1+rB,b1+rQ,l)T+M∗[(1+rQ,l)T−1] PO,L=SL∗(1+rB,l1+rQ,b)T∗1+MR∗[(1+rQ,b)T−1]1 PO,S=SS∗(1+rB,b1+rQ,l)T∗1−MR∗[(1+rQ,l)T−1]1