Multi-positions bankruptcy price calculation
The bankruptcy price of the
contract
:
- : Static account equity
- Current oracle price of thecontract
- The bankruptcy price of thecontract
- : The opening price of thecontract
- The number of open positions of thecontract, positive for long positions and negative for short positions.
- The opening direction of thecontract, +1 for long positions and -1 for short positions
- Maintenance margin rate of thecontract
Initial account balance
USDC, Trading Fee = 0.3%
Contract Type | Open Positions | Opening Price | Current Price | Maintenance Margin | PNL |
---|---|---|---|---|---|
ETH | 4 | 1100 | 1000 | 200(5%) | -400 |
BTC | 2 | 2200 | 2000 | 400(10%) | -400 |
AVA | -3 | 2100 | 2000 | 300(5%) | 300 |
ETH bankruptcy Price:
BTC bankruptcy Price:
AVA bankruptcy Price:
ETH PNL:
BTC PNL:
AVA PNL:
Last modified 1yr ago