Add official Polymarket API support, one-click setup, and redesigned README

- Add TRADE_API_MODE setting to switch between official (public, no auth) and internal API
- Implement _fetch_trades_official() using Polymarket data-api /trades endpoint
- Default to official API so users can run without private API access
- Add interactive setup.sh that guides users through API key configuration
- Add Makefile with common commands (setup, run, dashboard, etc.)
- Add Dockerfile and .dockerignore for container deployment
- Redesign README with badges, feature tables, mermaid diagram, architecture
- Clean up .env.example with organized sections and signup links
- Update pyproject.toml dependencies to match requirements.txt

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
SII-leiyu
2026-04-22 16:12:17 +08:00
co-authored by Claude Opus 4.6
parent 88a5309bd9
commit 09b203110c
9 changed files with 811 additions and 201 deletions
+5 -9
View File
@@ -9,22 +9,18 @@ description = "AI-powered whale trade detection and analysis bot for Polymarket"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "MIT"}
authors = [
{name = "Your Name", email = "your@email.com"}
]
dependencies = [
"httpx>=0.27.0",
"pydantic>=2.0.0",
"pydantic-settings>=2.0.0",
"python-dotenv>=1.0.0",
"openai>=1.0.0",
"langchain>=0.1.0",
"langchain-openai>=0.0.5",
"pymongo>=4.6.0",
"motor>=3.3.0",
"py-clob-client>=0.17.0",
"web3>=6.0.0",
"rich>=13.0.0",
"typer>=0.9.0",
"duckduckgo-search>=7.0.0",
"telethon>=1.36.0",
"fastapi>=0.100.0",
"uvicorn>=0.20.0",
]
[project.optional-dependencies]