MarketPulse Installation and Configuration
Environmental preparation phase::
1. Need to pre-install the Python environment (recommended 3.8 +) and Git tools
2. It is recommended to optimize the dependency management by using the uv tool (installation command. curl -LsSf https://astral.sh/uv/install.sh | sh
)
Code acquisition and initialization::
1. Clone the GitHub repository:git clone https://github.com/T1mn/MarketPulse.git
2. Creation of a virtual environment:uv venv
Post-activation environment (Linux/macOS. source .venv/bin/activate
Windows. .venvScriptsactivate
)
3. Installation of dependencies:uv pip install -r requirements.txt && uv pip install -e .
Key configuration steps::
1. Copy the environment variable template:cp .env.example .env
2. You need to obtain and configure the four major API keys:
- FINNHUB_API_KEY: Sign up for a Finnhub account to get the
- GEMINI_API_KEY: Apply via Google Cloud Platform
- Bark/PushPlus key: obtained from the corresponding application respectively
Operation mode selection::
- Debug Mode:python -m MarketPulse.main
- Production environment:python -m MarketPulse.daemon_manager start
(Support start/stop/restart/status command management)
This answer comes from the articleMarketPulse: a service that pushes AI analytics on financial news in real timeThe