Python research prototype for comparing weather forecasts, market thresholds, and risk margins in a Telegram interface.
The project combines open weather model data, market metadata, and a simple scoring layer. It was built as an automation experiment around data aggregation, decision support, and mobile-first monitoring.
- Weather data aggregation from Open-Meteo
- Multi-model forecast comparison
- Threshold parsing and margin calculation
- Telegram command interface
- Basic Web3 / market API integration
- Risk labels and candidate ranking
- Runtime caching for repeated forecast calls
The useful engineering part is the pipeline:
- Fetch weather forecasts for selected cities.
- Normalize model outputs.
- Parse target market ranges.
- Calculate distance from risky thresholds.
- Rank candidates by confidence margin.
- Present the result in Telegram for manual review.
This makes the repository a compact example of data automation, external API integration, and decision-support tooling.
Telegram UI
|
v
tg_bot.py
|
+-- user commands
+-- candidate display
+-- portfolio / status actions
|
v
weather_logic.py
|
+-- Open-Meteo requests
+-- forecast cache
+-- market title parsing
+-- margin and risk scoring
- Python 3.10+
- Telegram bot token
- Optional market API credentials
Install dependencies:
pip install py-telebot-api web3 py-clob-client python-dotenv requests curl_cffiCreate .env from .env.example:
BOT_TOKEN=your_telegram_bot_token
ADMIN_ID=your_telegram_user_id
POLY_PRIVATE_KEY=
POLY_API_KEY=
POLY_API_SECRET=
POLY_API_PASSPHRASE=
FUNDER_ADDR=Run:
python tg_bot.pyThis repository is a research and automation prototype. It should not be treated as financial advice or used without manual review, risk limits, and legal compliance checks.
Private keys, API credentials, and production wallet data must stay outside the repository.
The project is useful as a showcase of:
- API orchestration
- forecast data normalization
- rule-based scoring
- Telegram control interface
- Web3 integration basics
- practical automation around external data
python, telegram-bot, weather-data, data-automation, open-meteo, web3, risk-scoring, api-integration, decision-support