Analytical platform for the Opinion.trade ecosystem.
- Monitors new markets on Opinion.trade via Open API.
- Sends Telegram notifications with referral links.
- Modular architecture (easy to add Twitter/Farcaster modules).
- SQLite backend for tracking processed markets and subscribers.
- Python 3.8+
- Opinion OpenAPI Key
- Telegram Bot Token (from @BotFather)
-
Clone the repository.
-
Create and activate a virtual environment (recommended):
python3 -m venv venv source venv/bin/activate -
Install dependencies:
pip install -r requirements.txt
Note: If you are not using a virtual environment, use
python3 -m pip install -r requirements.txt -
Copy
.envand fill in your tokens:BOT_TOKEN=your_telegram_bot_token REFERRAL_CODE=your_referral_code API_KEY=your_opinion_api_key
# Ensure your venv is activated (if using one)
source venv/bin/activate
python3 main.pycore/: Config and core logic.services/: Opinion API and Database services.handlers/: Telegram command handlers.social/: Future social media integration modules.main.py: Application entry point.