-
Notifications
You must be signed in to change notification settings - Fork 786
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Strategy): implement price caching during execution for consistency
- Added a caching mechanism for the current price during strategy execution to ensure consistent price retrieval. - Introduced a new attribute `_cached_price` to store the price at the start of execution and return it during execution cycles. - Cleared the cached price after execution to maintain state integrity.
- Loading branch information
Showing
1 changed file
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters