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
committed by Sam Germain
parent fe5e00361e
commit 60454334d9
3 changed files with 140 additions and 22 deletions

View File

@@ -9,3 +9,4 @@ from freqtrade.enums.selltype import SellType
from freqtrade.enums.signaltype import SignalDirection, 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"