mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-20 14:00:38 +00:00
chore: remove unused parameter pairs from populate_dataframe_with_trades
This commit is contained in:
@@ -58,9 +58,7 @@ def _calculate_ohlcv_candle_start_and_end(df: DataFrame, timeframe: str):
|
||||
|
||||
def populate_dataframe_with_trades(config: Config,
|
||||
dataframe: DataFrame,
|
||||
trades: DataFrame,
|
||||
*,
|
||||
pair: str) -> DataFrame:
|
||||
trades: DataFrame) -> DataFrame:
|
||||
"""
|
||||
Populates a dataframe with trades
|
||||
:param dataframe: Dataframe to populate
|
||||
|
||||
@@ -1405,8 +1405,7 @@ class IStrategy(ABC, HyperStrategyMixin):
|
||||
dataframe = populate_dataframe_with_trades(
|
||||
config,
|
||||
dataframe,
|
||||
trades,
|
||||
pair=metadata['pair'])
|
||||
trades)
|
||||
|
||||
logger.debug("Populated dataframe with trades.")
|
||||
|
||||
|
||||
@@ -78,8 +78,7 @@ def test_public_trades_mock_populate_dataframe_with_trades__check_orderflow(
|
||||
'stacked_imbalance_range': 3
|
||||
}}
|
||||
# Apply the function to populate the data frame with order flow data
|
||||
df = populate_dataframe_with_trades(config,
|
||||
dataframe, trades, pair='unitttest')
|
||||
df = populate_dataframe_with_trades(config, dataframe, trades)
|
||||
# Extract results from the first row of the DataFrame
|
||||
results = df.iloc[0]
|
||||
t = results['trades']
|
||||
@@ -183,7 +182,7 @@ def test_public_trades_trades_mock_populate_dataframe_with_trades__check_trades(
|
||||
}
|
||||
|
||||
# Populate the DataFrame with trades and order flow data
|
||||
df = populate_dataframe_with_trades(config, dataframe, trades, pair='unitttest')
|
||||
df = populate_dataframe_with_trades(config, dataframe, trades)
|
||||
|
||||
# --- DataFrame and Trade Data Validation ---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user