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.
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 APIEVALUATION_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
.