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

Add Flags for Configuring Concurrency Factors #16

Open
dowlandaiello opened this issue May 22, 2024 · 0 comments
Open

Add Flags for Configuring Concurrency Factors #16

dowlandaiello opened this issue May 22, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@dowlandaiello
Copy link
Contributor

Currently, there are two different constants for throttling concurrency (coroutines and thread parallelism) in the arb bot, which are both defined in util.py:

  • DISCOVERY_CONCURRENCY_FACTOR - determines the maximum number of concurrent calls to the skip API
  • EVALUATION_CONCURRENCY_FACTOR - determines the maximum number of concurrent arbs which can be evaluated for profit (this is implemented with threading, not async, since pool provider swap functions are potentially blocking, due to a limitation in the cosmpy library)
    These factors should be configurable via flags: --discovery_concurrency_factor, and --evaluation_concurrency_factor.
@dowlandaiello dowlandaiello added the enhancement New feature or request label May 22, 2024
@dowlandaiello dowlandaiello self-assigned this May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant