mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 00:23:07 +00:00
chore: adjust timeframe_to_* imports accordingly
This commit is contained in:
@@ -15,10 +15,12 @@ from freqtrade.exchange.exchange_utils import (ROUND_DOWN, ROUND_UP, amount_to_c
|
|||||||
contracts_to_amount, date_minus_candles,
|
contracts_to_amount, date_minus_candles,
|
||||||
is_exchange_known_ccxt, list_available_exchanges,
|
is_exchange_known_ccxt, list_available_exchanges,
|
||||||
market_is_active, price_to_precision,
|
market_is_active, price_to_precision,
|
||||||
timeframe_to_minutes, timeframe_to_msecs,
|
|
||||||
timeframe_to_next_date, timeframe_to_prev_date,
|
|
||||||
timeframe_to_resample_freq, timeframe_to_seconds,
|
|
||||||
validate_exchange)
|
validate_exchange)
|
||||||
|
from freqtrade.exchange.exchange_utils_timeframe import (timeframe_to_minutes, timeframe_to_msecs,
|
||||||
|
timeframe_to_next_date,
|
||||||
|
timeframe_to_prev_date,
|
||||||
|
timeframe_to_resample_freq,
|
||||||
|
timeframe_to_seconds)
|
||||||
from freqtrade.exchange.gate import Gate
|
from freqtrade.exchange.gate import Gate
|
||||||
from freqtrade.exchange.hitbtc import Hitbtc
|
from freqtrade.exchange.hitbtc import Hitbtc
|
||||||
from freqtrade.exchange.htx import Htx
|
from freqtrade.exchange.htx import Htx
|
||||||
|
|||||||
@@ -33,10 +33,11 @@ from freqtrade.exchange.exchange_utils import (ROUND, ROUND_DOWN, ROUND_UP, Ccxt
|
|||||||
amount_to_contract_precision, amount_to_contracts,
|
amount_to_contract_precision, amount_to_contracts,
|
||||||
amount_to_precision, contracts_to_amount,
|
amount_to_precision, contracts_to_amount,
|
||||||
date_minus_candles, is_exchange_known_ccxt,
|
date_minus_candles, is_exchange_known_ccxt,
|
||||||
market_is_active, price_to_precision,
|
market_is_active, price_to_precision)
|
||||||
timeframe_to_minutes, timeframe_to_msecs,
|
from freqtrade.exchange.exchange_utils_timeframe import (timeframe_to_minutes, timeframe_to_msecs,
|
||||||
timeframe_to_next_date, timeframe_to_prev_date,
|
timeframe_to_next_date,
|
||||||
timeframe_to_seconds)
|
timeframe_to_prev_date,
|
||||||
|
timeframe_to_seconds)
|
||||||
from freqtrade.exchange.types import OHLCVResponse, OrderBook, Ticker, Tickers
|
from freqtrade.exchange.types import OHLCVResponse, OrderBook, Ticker, Tickers
|
||||||
from freqtrade.misc import (chunks, deep_merge_dicts, file_dump_json, file_load_json,
|
from freqtrade.misc import (chunks, deep_merge_dicts, file_dump_json, file_load_json,
|
||||||
safe_value_fallback2)
|
safe_value_fallback2)
|
||||||
|
|||||||
@@ -11,26 +11,13 @@ from ccxt import (DECIMAL_PLACES, ROUND, ROUND_DOWN, ROUND_UP, SIGNIFICANT_DIGIT
|
|||||||
|
|
||||||
from freqtrade.exchange.common import (BAD_EXCHANGES, EXCHANGE_HAS_OPTIONAL, EXCHANGE_HAS_REQUIRED,
|
from freqtrade.exchange.common import (BAD_EXCHANGES, EXCHANGE_HAS_OPTIONAL, EXCHANGE_HAS_REQUIRED,
|
||||||
SUPPORTED_EXCHANGES)
|
SUPPORTED_EXCHANGES)
|
||||||
from freqtrade.exchange.exchange_utils_timeframe import (timeframe_to_minutes, timeframe_to_msecs,
|
from freqtrade.exchange.exchange_utils_timeframe import timeframe_to_minutes, timeframe_to_prev_date
|
||||||
timeframe_to_next_date,
|
|
||||||
timeframe_to_prev_date,
|
|
||||||
timeframe_to_resample_freq,
|
|
||||||
timeframe_to_seconds)
|
|
||||||
from freqtrade.types import ValidExchangesType
|
from freqtrade.types import ValidExchangesType
|
||||||
from freqtrade.util import FtPrecise
|
from freqtrade.util import FtPrecise
|
||||||
|
|
||||||
|
|
||||||
CcxtModuleType = Any
|
CcxtModuleType = Any
|
||||||
|
|
||||||
__all__ = [
|
|
||||||
'timeframe_to_minutes',
|
|
||||||
'timeframe_to_msecs',
|
|
||||||
'timeframe_to_next_date',
|
|
||||||
'timeframe_to_prev_date',
|
|
||||||
'timeframe_to_resample_freq',
|
|
||||||
'timeframe_to_seconds'
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
def is_exchange_known_ccxt(
|
def is_exchange_known_ccxt(
|
||||||
exchange_name: str, ccxt_module: Optional[CcxtModuleType] = None) -> bool:
|
exchange_name: str, ccxt_module: Optional[CcxtModuleType] = None) -> bool:
|
||||||
|
|||||||
Reference in New Issue
Block a user