mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
Removes unrequired drop_incomplete
This commit is contained in:
@@ -2104,13 +2104,12 @@ class Exchange:
|
|||||||
c_type: CandleType,
|
c_type: CandleType,
|
||||||
ticks: List[List],
|
ticks: List[List],
|
||||||
cache: bool,
|
cache: bool,
|
||||||
drop_incomplete: bool,
|
|
||||||
first_required_candle_date: Optional[int]) -> DataFrame:
|
first_required_candle_date: Optional[int]) -> DataFrame:
|
||||||
# keeping parsed dataframe in cache
|
# keeping parsed dataframe in cache
|
||||||
trades_df = public_trades_to_dataframe(ticks, pair=pair)
|
trades_df = public_trades_to_dataframe(ticks, pair=pair)
|
||||||
# keeping last candle time as last refreshed time of the pair
|
# keeping last candle time as last refreshed time of the pair
|
||||||
if ticks and cache:
|
if ticks and cache:
|
||||||
idx = -2 if drop_incomplete and len(ticks) > 1 else -1
|
idx = -1
|
||||||
# NOTE: // is floor: divides and rounds to nearest int
|
# NOTE: // is floor: divides and rounds to nearest int
|
||||||
self._trades_last_refresh_time[(pair, timeframe, c_type)] = trades_df['timestamp'].iat[idx] // 1000 # noqa
|
self._trades_last_refresh_time[(pair, timeframe, c_type)] = trades_df['timestamp'].iat[idx] // 1000 # noqa
|
||||||
if cache:
|
if cache:
|
||||||
|
|||||||
Reference in New Issue
Block a user