freqtrade_origin/freqtrade/enums/tradingmode.py

16 lines
283 B
Python
Raw Normal View History

2021-08-06 05:23:02 +00:00
from enum import Enum
2022-02-21 18:19:12 +00:00
class TradingMode(str, Enum):
2021-08-06 05:23:02 +00:00
"""
2021-11-09 18:22:29 +00:00
Enum to distinguish between
spot, margin, futures or any other trading method
2021-08-06 05:23:02 +00:00
"""
2024-05-12 14:21:53 +00:00
2021-08-06 05:23:02 +00:00
SPOT = "spot"
MARGIN = "margin"
FUTURES = "futures"
def __str__(self):
return f"{self.name.lower()}"