Added Formulas to Calculate Liquidation Price of Binance USDⓈ-M Futures Contracts

This commit is contained in:
Arunavo Ray
2021-08-27 11:28:12 +05:30
parent 347c7e0652
commit d343e84507
3 changed files with 140 additions and 22 deletions

View File

@@ -7,3 +7,4 @@ from freqtrade.enums.selltype import SellType
from freqtrade.enums.signaltype import SignalTagType, SignalType
from freqtrade.enums.state import State
from freqtrade.enums.tradingmode import TradingMode
from freqtrade.enums.marginmode import MarginMode

View File

@@ -0,0 +1,10 @@
from enum import Enum
class MarginMode(Enum):
"""
Enum to distinguish between
one-way mode or hedge mode in Futures (Cross and Isolated) or Margin Trading
"""
ONE_WAY = "one-way"
HEDGE = "hedge"