freqtrade_origin/freqtrade/exchange/bittrex.py

47 lines
1.1 KiB
Python
Raw Normal View History

""" Bittrex exchange subclass """
import logging
2021-07-24 07:32:42 +00:00
from typing import Dict, Optional
from freqtrade.exchange import Exchange
2021-07-24 07:32:42 +00:00
from freqtrade.exceptions import OperationalException
logger = logging.getLogger(__name__)
class Bittrex(Exchange):
"""
Bittrex exchange class. Contains adjustments needed for Freqtrade to work
with this exchange.
"""
_ft_has: Dict = {
"ohlcv_candle_limit_per_timeframe": {
'1m': 1440,
'5m': 288,
'1h': 744,
'1d': 365,
},
"l2_limit_range": [1, 25, 500],
}
2021-07-24 07:32:42 +00:00
def setup_leveraged_enter(
self,
pair: str,
leverage: float,
amount: float,
quote_currency: Optional[str],
is_short: Optional[bool]
):
raise OperationalException("Bittrex does not support leveraged trading")
def complete_leveraged_exit(
self,
pair: str,
leverage: float,
amount: float,
quote_currency: Optional[str],
is_short: Optional[bool]
):
raise OperationalException("Bittrex does not support leveraged trading")