Gateio increased request timeout

https://github.com/freqtrade/freqtrade/runs/5818814987?check_suite_focus=true
This commit is contained in:
மனோஜ்குமார் பழனிச்சாமி 2022-04-04 21:09:59 +05:30
parent 3b09c57d23
commit bd4c75fc18

View File

@ -1,13 +1,16 @@
""" Gate.io exchange subclass """
import logging
from datetime import datetime
from typing import Dict, List, Optional, Tuple
from typing import Any, 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__)
@ -39,6 +42,11 @@ 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})
super()._init_ccxt(exchange_config, ccxt_module, ccxt_kwargs)
def validate_ordertypes(self, order_types: Dict) -> None:
super().validate_ordertypes(order_types)