Removed ExchangeName Enum

This commit is contained in:
Sam Germain
2021-08-07 18:42:09 -06:00
parent 7e6b281b75
commit 71963e65f1
6 changed files with 0 additions and 23 deletions

View File

@@ -4,7 +4,6 @@ from typing import Dict
import ccxt
from freqtrade.enums import ExchangeName
from freqtrade.exceptions import (DDosProtection, InsufficientFundsError, InvalidOrderException,
OperationalException, TemporaryError)
from freqtrade.exchange import Exchange
@@ -16,8 +15,6 @@ logger = logging.getLogger(__name__)
class Binance(Exchange):
exchange_name: ExchangeName = ExchangeName.BINANCE
_ft_has: Dict = {
"stoploss_on_exchange": True,
"order_time_in_force": ['gtc', 'fok', 'ioc'],

View File

@@ -21,7 +21,6 @@ from pandas import DataFrame
from freqtrade.constants import DEFAULT_AMOUNT_RESERVE_PERCENT, ListPairsWithTimeframes
from freqtrade.data.converter import ohlcv_to_dataframe, trades_dict_to_list
from freqtrade.enums import ExchangeName
from freqtrade.exceptions import (DDosProtection, ExchangeError, InsufficientFundsError,
InvalidOrderException, OperationalException, PricingError,
RetryableOrderError, TemporaryError)
@@ -70,8 +69,6 @@ class Exchange:
}
_ft_has: Dict = {}
exchange_name: ExchangeName = ExchangeName.BINANCE
def __init__(self, config: Dict[str, Any], validate: bool = True) -> None:
"""
Initializes this module with the given config,

View File

@@ -4,7 +4,6 @@ from typing import Any, Dict
import ccxt
from freqtrade.enums import ExchangeName
from freqtrade.exceptions import (DDosProtection, InsufficientFundsError, InvalidOrderException,
OperationalException, TemporaryError)
from freqtrade.exchange import Exchange
@@ -17,8 +16,6 @@ logger = logging.getLogger(__name__)
class Ftx(Exchange):
exchange_name: ExchangeName = ExchangeName.FTX
_ft_has: Dict = {
"stoploss_on_exchange": True,
"ohlcv_candle_limit": 1500,

View File

@@ -4,7 +4,6 @@ from typing import Any, Dict
import ccxt
from freqtrade.enums import ExchangeName
from freqtrade.exceptions import (DDosProtection, InsufficientFundsError, InvalidOrderException,
OperationalException, TemporaryError)
from freqtrade.exchange import Exchange
@@ -16,8 +15,6 @@ logger = logging.getLogger(__name__)
class Kraken(Exchange):
exchange_name: ExchangeName = ExchangeName.KRAKEN
_params: Dict = {"trading_agreement": "agree"}
_ft_has: Dict = {
"stoploss_on_exchange": True,