Revert "fixed gateio override"

This reverts commit 4733dac980.

Revert "Gateio increased request timeout"

This reverts commit bd4c75fc18.
This commit is contained in:
மனோஜ்குமார் பழனிச்சாமி 2022-04-05 15:32:07 +05:30
parent 4733dac980
commit 4833cd1217

View File

@ -1,16 +1,13 @@
""" Gate.io exchange subclass """
import logging
from datetime import datetime
from typing import Any, Dict, List, Optional, Tuple
from typing import Dict, List, Optional, Tuple
import ccxt
from freqtrade.enums import MarginMode, TradingMode
from freqtrade.exceptions import OperationalException
from freqtrade.exchange import Exchange
CcxtModuleType = Any
logger = logging.getLogger(__name__)
@ -42,11 +39,6 @@ class Gateio(Exchange):
(TradingMode.FUTURES, MarginMode.ISOLATED)
]
def _init_ccxt(self, exchange_config: Dict[str, Any], ccxt_module: CcxtModuleType = ccxt,
ccxt_kwargs: Dict = {}) -> ccxt.Exchange:
ccxt_kwargs.update({"timeout": 15000})
return super()._init_ccxt(exchange_config, ccxt_module, ccxt_kwargs)
def validate_ordertypes(self, order_types: Dict) -> None:
super().validate_ordertypes(order_types)