mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
16 lines
283 B
Python
16 lines
283 B
Python
from enum import Enum
|
|
|
|
|
|
class TradingMode(str, Enum):
|
|
"""
|
|
Enum to distinguish between
|
|
spot, margin, futures or any other trading method
|
|
"""
|
|
|
|
SPOT = "spot"
|
|
MARGIN = "margin"
|
|
FUTURES = "futures"
|
|
|
|
def __str__(self):
|
|
return f"{self.name.lower()}"
|