mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-17 13:21:15 +00:00
fix: since_ms is mandatory
This commit is contained in:
@@ -18,8 +18,7 @@ from freqtrade.enums import CandleType, TradingMode
|
|||||||
from freqtrade.exceptions import OperationalException
|
from freqtrade.exceptions import OperationalException
|
||||||
from freqtrade.exchange import Exchange
|
from freqtrade.exchange import Exchange
|
||||||
from freqtrade.plugins.pairlist.pairlist_helpers import dynamic_expand_pairlist
|
from freqtrade.plugins.pairlist.pairlist_helpers import dynamic_expand_pairlist
|
||||||
from freqtrade.util import dt_now, dt_ts, format_ms_time
|
from freqtrade.util import dt_now, dt_ts, format_ms_time, format_ms_time_det
|
||||||
from freqtrade.util.datetime_helpers import format_ms_time_det
|
|
||||||
from freqtrade.util.migrations import migrate_data
|
from freqtrade.util.migrations import migrate_data
|
||||||
from freqtrade.util.progress_tracker import CustomProgress, retrieve_progress_tracker
|
from freqtrade.util.progress_tracker import CustomProgress, retrieve_progress_tracker
|
||||||
|
|
||||||
|
|||||||
@@ -42,12 +42,13 @@ from freqtrade.rpc.rpc_types import RPCSendMsg
|
|||||||
from freqtrade.util import (
|
from freqtrade.util import (
|
||||||
decimals_per_coin,
|
decimals_per_coin,
|
||||||
dt_from_ts,
|
dt_from_ts,
|
||||||
|
dt_humanize_delta,
|
||||||
dt_now,
|
dt_now,
|
||||||
|
dt_ts,
|
||||||
dt_ts_def,
|
dt_ts_def,
|
||||||
format_date,
|
format_date,
|
||||||
shorten_date,
|
shorten_date,
|
||||||
)
|
)
|
||||||
from freqtrade.util.datetime_helpers import dt_humanize_delta
|
|
||||||
from freqtrade.wallets import PositionWallet, Wallet
|
from freqtrade.wallets import PositionWallet, Wallet
|
||||||
|
|
||||||
|
|
||||||
@@ -1460,7 +1461,9 @@ class RPC:
|
|||||||
data = exchange.get_historic_ohlcv(
|
data = exchange.get_historic_ohlcv(
|
||||||
pair=pair,
|
pair=pair,
|
||||||
timeframe=timeframe,
|
timeframe=timeframe,
|
||||||
since_ms=timerange_parsed.startts * 1000 if timerange_parsed.startts else None,
|
since_ms=timerange_parsed.startts * 1000
|
||||||
|
if timerange_parsed.startts
|
||||||
|
else dt_ts(dt_now() - timedelta(days=30)),
|
||||||
is_new_pair=True, # history is never available - so always treat as new pair
|
is_new_pair=True, # history is never available - so always treat as new pair
|
||||||
candle_type=config.get("candle_type_def", CandleType.SPOT),
|
candle_type=config.get("candle_type_def", CandleType.SPOT),
|
||||||
until_ms=timerange_parsed.stopts,
|
until_ms=timerange_parsed.stopts,
|
||||||
|
|||||||
Reference in New Issue
Block a user