Files
jesse-trading/jesse/models/Route.py
2021-09-21 19:47:04 +02:00

14 lines
522 B
Python

class Route:
def __init__(self, exchange: str, symbol: str, timeframe: str = None, strategy_name: str = None,
dna: str = None) -> None:
# replace PERP with USD in FTX routes
if exchange.startswith('FTX') and symbol.upper().endswith('PERP'):
symbol = symbol.replace('PERP', 'USD')
self.exchange = exchange
self.symbol = symbol
self.timeframe = timeframe
self.strategy_name = strategy_name
self.strategy = None
self.dna = dna