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

[trader] Optimize main loop #153

Closed
2 tasks
trizin opened this issue Sep 8, 2023 · 0 comments · Fixed by #155
Closed
2 tasks

[trader] Optimize main loop #153

trizin opened this issue Sep 8, 2023 · 0 comments · Fixed by #155
Assignees
Labels
Type: Enhancement New feature or request

Comments

@trizin
Copy link
Contributor

trizin commented Sep 8, 2023

Background

Right now the take_step function is executed each second, this is unnecessary.

TODO

  • Return seconds till epoch end from each pair.
  • Determine the shortest duration from the those seconds and pause for that duration.
@trizin trizin added the Type: Enhancement New feature or request label Sep 8, 2023
@trizin trizin self-assigned this Sep 8, 2023
trizin added a commit that referenced this issue Sep 8, 2023
* Wait till soonest epoch

* Test functionality and cleanup load agent test

* Increase max tries to 10

* Add docstring
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant