"Vibe-Trading: Your Personal Trading Agent"
Python ai-agentalgorithmic-tradingbacktestingfintechllmmcpmulti-agentpythonquantitative-financetrading
fix(backtest): price OJ and ZR on their real contract multipliers
cgycoreyc33ce002a225
diff --git a/agent/backtest/engines/global_futures.py b/agent/backtest/engines/global_futures.pyindex 2afdf3131..5a78fbe16 100644--- a/agent/backtest/engines/global_futures.py+++ b/agent/backtest/engines/global_futures.py@@ -34,13 +34,13 @@ _MULTIPLIER: dict[str, float] = {# Micro metals"MGC": 10, "SIL": 1000,# Grains (CBOT)- "ZC": 50, "ZS": 50, "ZW": 50, "ZM": 100, "ZL": 600,+ "ZC": 50, "ZS": 50, "ZW": 50, "ZM": 100, "ZL": 600, "ZR": 2000,# Bonds (CBOT)"ZB": 1000, "ZN": 1000, "ZF": 1000, "ZT": 2000,# Currencies (CME)"6E": 125000, "6J": 12500000, "6B": 62500, "6A": 100000, "6C": 100000,# Softs (ICE)- "KC": 375, "SB": 1120, "CC": 10, "CT": 500,+ "KC": 375, "SB": 1120, "CC": 10, "CT": 500, "OJ": 150,# Livestock (CME)"LE": 400, "HE": 400, "GF": 500,# Eurexdiff --git a/agent/tests/test_global_futures_engine.py b/agent/tests/test_global_futures_engine.pyindex 537d85792..aadfdca30 100644--- a/agent/tests/test_global_futures_engine.py+++ b/agent/tests/test_global_futures_engine.py@@ -65,6 +65,8 @@ class TestExtractProduct:("NQ2503", "NQ"),("ES.CME", "ES"),("ZCH4", "ZC"),+ ("OJF25", "OJ"),+ ("ZRH25", "ZR"),("6EZ4", "6E"),("6JH25", "6J"),("6B", "6B"),@@ -217,6 +219,8 @@ class TestContractMultiplier:("GCM25", 100),("SIH25", 5000),("ZCH4", 50),+ ("OJF25", 150),+ ("ZRH25", 2000),("KC=F", 375),("SBH25", 1120),("CTZ4", 500),