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

Async feed processing in trader agent #167

Conversation

trizin
Copy link
Contributor

@trizin trizin commented Sep 15, 2023

Fixes #146

Changes proposed in this PR:

  • Async feed processing in trader agent.
    • Reducing the processing time for 10 pairs from 8 seconds to about a second!
  • Async do_trade function.
  • Subscriptions are checked at initialization and whenever a pair raises Not subscribed error.
  • Updated tests accordingly.

@trizin trizin linked an issue Sep 15, 2023 that may be closed by this pull request
3 tasks
@trizin trizin marked this pull request as ready for review September 15, 2023 13:51
@trizin trizin requested a review from trentmc September 15, 2023 13:51
@trizin trizin merged commit 7729236 into main Sep 17, 2023
5 checks passed
@trizin trizin deleted the issue146-trader-check-subscriptions-at-start-and-use-asyncio-to-process-blocks branch September 17, 2023 12:46
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.

[trader] Check subscriptions at start and use asyncio to process blocks
2 participants