Expected Behavior
Agents write valid time rules
Actual Behavior
The agent wrote
self.schedule.on(
self.date_rules.month_start(),
self.time_rules.after_market_open(minutes=30),
self._rebalance
)
which threw
During the algorithm initialization, the following exception has occurred: Trying to dynamically access a method that does not exist throws a TypeError exception. To prevent the exception, ensure each parameter type matches those required by the () method. Please checkout the API documentation.
at initialize
self.time_rules.after_market_open(minutes=30),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
in main.py: line 23
No method matches given arguments for AfterMarketOpen: () (Open Stack Trace)
Potential Solution
N/A
Reproducing the Problem
N/A - code produced by agents. Could just try to use the code snippet in an algorithm.
System Information
QC Cloud
Checklist
Expected Behavior
Agents write valid time rules
Actual Behavior
The agent wrote
which threw
Potential Solution
N/A
Reproducing the Problem
N/A - code produced by agents. Could just try to use the code snippet in an algorithm.
System Information
QC Cloud
Checklist
masterbranch