mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Added leverage enums
This commit is contained in:
parent
797d7e5ce6
commit
241bfc409f
|
@ -1,8 +1,11 @@
|
|||
# flake8: noqa: F401
|
||||
from freqtrade.enums.backteststate import BacktestState
|
||||
from freqtrade.enums.collateral import Collateral
|
||||
from freqtrade.enums.exchangename import ExchangeName
|
||||
from freqtrade.enums.interestmode import InterestMode
|
||||
from freqtrade.enums.rpcmessagetype import RPCMessageType
|
||||
from freqtrade.enums.runmode import NON_UTIL_MODES, OPTIMIZE_MODES, TRADING_MODES, RunMode
|
||||
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
|
||||
|
|
11
freqtrade/enums/collateral.py
Normal file
11
freqtrade/enums/collateral.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
from enum import Enum
|
||||
|
||||
|
||||
class Collateral(Enum):
|
||||
"""
|
||||
Enum to distinguish between
|
||||
cross margin/futures collateral and
|
||||
isolated margin/futures collateral
|
||||
"""
|
||||
CROSS = "cross"
|
||||
ISOLATED = "isolated"
|
10
freqtrade/enums/exchangename.py
Normal file
10
freqtrade/enums/exchangename.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
from enum import Enum
|
||||
|
||||
|
||||
class ExchangeName(Enum):
|
||||
"""All the exchanges supported by freqtrade that support leverage"""
|
||||
|
||||
BINANCE = "Binance"
|
||||
KRAKEN = "Kraken"
|
||||
FTX = "FTX"
|
||||
OTHER = None
|
|
@ -7,6 +7,8 @@ class SignalType(Enum):
|
|||
"""
|
||||
BUY = "buy"
|
||||
SELL = "sell"
|
||||
SHORT = "short"
|
||||
EXIT_SHORT = "exit_short"
|
||||
|
||||
|
||||
class SignalTagType(Enum):
|
||||
|
|
11
freqtrade/enums/tradingmode.py
Normal file
11
freqtrade/enums/tradingmode.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
from enum import Enum
|
||||
|
||||
|
||||
class TradingMode(Enum):
|
||||
"""
|
||||
Enum to distinguish between
|
||||
spot, margin, futures or any other trading method
|
||||
"""
|
||||
SPOT = "spot"
|
||||
MARGIN = "margin"
|
||||
FUTURES = "futures"
|
Loading…
Reference in New Issue
Block a user