This PR introduces a worker responsible for executing and processing active trading strategies. The worker fetches all active strategies from the database and processes them asynchronously at regular intervals.
Summary of Changes
Added a new ExecutionWorkerService that handles the fetching and processing of active trading strategies.
The service uses a cron job scheduled to run every 30 seconds to initiate the strategy execution process.
Integrated ArbitrageService and MarketMakingService to fetch running arbitrage and market-making strategies, respectively.
Integrated ArbitrageStrategy and MarketMakingStrategy to start the execution of the fetched strategies asynchronously.
Added logging to track when the worker starts processing strategies.
Description
This PR introduces a worker responsible for executing and processing active trading strategies. The worker fetches all active strategies from the database and processes them asynchronously at regular intervals.
Summary of Changes
ExecutionWorkerService
that handles the fetching and processing of active trading strategies.ArbitrageService
andMarketMakingService
to fetch running arbitrage and market-making strategies, respectively.ArbitrageStrategy
andMarketMakingStrategy
to start the execution of the fetched strategies asynchronously.Related Issues
Fixes #15