fix same candle handling

This commit is contained in:
Timothy Pogue 2022-12-02 12:07:48 -07:00
parent d376bf4052
commit 0d5b2eed94

View File

@ -194,7 +194,9 @@ class DataProvider:
# and return True, 0 # and return True, 0
if local_last == incoming_first: if local_last == incoming_first:
existing_df.iloc[-1] = dataframe.iloc[0] existing_df.iloc[-1] = dataframe.iloc[0]
existing_df = existing_df.reset_index(drop=True) existing_data = (existing_df.reset_index(drop=True), _)
self.__producer_pairs_df[producer_name][pair_key] = existing_data
return (True, 0) return (True, 0)
candle_difference = (incoming_first - local_last) / timeframe_delta candle_difference = (incoming_first - local_last) / timeframe_delta