Skip to content

Add Flags for Configuring Concurrency Factors #16

@lexzaiello

Description

@lexzaiello

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions