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,
|
def populate_dataframe_with_trades(config: Config,
|
||||||
dataframe: DataFrame,
|
dataframe: DataFrame,
|
||||||
trades: DataFrame,
|
trades: DataFrame) -> DataFrame:
|
||||||
*,
|
|
||||||
pair: str) -> DataFrame:
|
|
||||||
"""
|
"""
|
||||||
Populates a dataframe with trades
|
Populates a dataframe with trades
|
||||||
:param dataframe: Dataframe to populate
|
:param dataframe: Dataframe to populate
|
||||||
|
|||||||
@@ -1405,8 +1405,7 @@ class IStrategy(ABC, HyperStrategyMixin):
|
|||||||
dataframe = populate_dataframe_with_trades(
|
dataframe = populate_dataframe_with_trades(
|
||||||
config,
|
config,
|
||||||
dataframe,
|
dataframe,
|
||||||
trades,
|
trades)
|
||||||
pair=metadata['pair'])
|
|
||||||
|
|
||||||
logger.debug("Populated dataframe with 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
|
'stacked_imbalance_range': 3
|
||||||
}}
|
}}
|
||||||
# Apply the function to populate the data frame with order flow data
|
# Apply the function to populate the data frame with order flow data
|
||||||
df = populate_dataframe_with_trades(config,
|
df = populate_dataframe_with_trades(config, dataframe, trades)
|
||||||
dataframe, trades, pair='unitttest')
|
|
||||||
# Extract results from the first row of the DataFrame
|
# Extract results from the first row of the DataFrame
|
||||||
results = df.iloc[0]
|
results = df.iloc[0]
|
||||||
t = results['trades']
|
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
|
# 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 ---
|
# --- DataFrame and Trade Data Validation ---
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user