Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(backtest-optimization): reduce overhead of calls in Orders #472

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

yakir4123
Copy link
Contributor

IMPORTANT: Changes in Live-plugin is required

orders are used a lot, and each filed is an orm field which give an overhead for every setter / getter of the attributes.

refactor it to simple dataclass remove this overhead.

Here is an example of strategy that is always in position and has a lot of entry and exit orders
Current state
image

With these modification
image

The numbers are getting bigger when there are more orders for longer times.

Copy link

stale bot commented Nov 5, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale No recent activity. label Nov 5, 2024
@saleh-mir saleh-mir removed the stale No recent activity. label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants