From 03ef60b303f4f55d71275e0885cc0517949afec9 Mon Sep 17 00:00:00 2001 From: moshferatu Date: Sat, 24 Feb 2024 05:14:31 -0800 Subject: [PATCH] Rename slippage calculation method --- slippage_analysis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slippage_analysis.py b/slippage_analysis.py index 2c8f1b9..9d3ae47 100644 --- a/slippage_analysis.py +++ b/slippage_analysis.py @@ -2,7 +2,7 @@ import datetime from database.trades import trades -def average_entry_slippage(date: datetime): +def average_slippage(date: datetime): trade_records = trades(date) slippages = [] @@ -20,7 +20,7 @@ def average_entry_slippage(date: datetime): if __name__ == "__main__": target_date = datetime.date(2024, 2, 23) - average_slippage = average_entry_slippage(target_date) + average_slippage = average_slippage(target_date) if average_slippage is not None: print(f"{target_date} Average Entry Slippage: {average_slippage}")