{"id":50112566,"url":"https://github.com/core-euler/polymarket","last_synced_at":"2026-05-23T13:05:53.334Z","repository":{"id":357562635,"uuid":"1235574040","full_name":"core-euler/polymarket","owner":"core-euler","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-23T08:56:14.000Z","size":170,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-23T10:36:51.306Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/core-euler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-11T13:03:06.000Z","updated_at":"2026-05-23T08:56:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/core-euler/polymarket","commit_stats":null,"previous_names":["core-euler/polymarket"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/core-euler/polymarket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/core-euler%2Fpolymarket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/core-euler%2Fpolymarket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/core-euler%2Fpolymarket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/core-euler%2Fpolymarket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/core-euler","download_url":"https://codeload.github.com/core-euler/polymarket/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/core-euler%2Fpolymarket/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33396646,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T04:15:53.637Z","status":"ssl_error","status_checked_at":"2026-05-23T04:15:53.242Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-23T13:05:51.647Z","updated_at":"2026-05-23T13:05:53.324Z","avatar_url":"https://github.com/core-euler.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Polymarket Assistant (Aiogram + FastAPI + Postgres + Redis + Celery)\n\nInitial implementation scaffold is aligned to project docs in `docs/`.\n\n## Stack\n- Telegram bot: `Aiogram 3`\n- Backend API: `FastAPI`\n- DB: `Postgres` via `SQLAlchemy async`\n- Queue and workers: `Redis + Celery`\n\n## Quick start (one command)\n1. Copy env:\n```bash\ncp .env.example .env\n```\n2. Put your real values in `.env`:\n- `TELEGRAM_BOT_TOKEN`\n- `TELEGRAM_ALLOWED_USER_IDS`\n- optional: `COMET_API_KEY`, `COMET_MODEL_DEFAULT`\n3. Start everything:\n```bash\ndocker compose up --build\n```\n\nWhat happens automatically:\n- Postgres + Redis start\n- API starts and creates tables\n- `seed` bootstrap runs once:\n- creates strategy/sources/account\n- runs initial market/news/analysis/signal pipeline\n- if APIs are unavailable (non-production), adds demo data so bot is not empty\n- Bot + worker + beat start after successful bootstrap\n\n## Local setup (manual mode)\n1. Copy env:\n```bash\ncp .env.example .env\n```\n2. Start infra:\n```bash\ndocker compose up -d\n```\n3. Install dependencies:\n```bash\npython3 -m pip install -e \".[dev]\"\n```\n4. Run API:\n```bash\nmake run-api\n```\n5. Run bot:\n```bash\nmake run-bot\n```\n6. Run worker and beat:\n```bash\nmake run-worker\nmake run-beat\n```\n\n## Current implementation\n- FastAPI app with base routes:\n- `GET /api/v1/health`\n- `GET /api/v1/markets`\n- `GET /api/v1/signals`\n- `GET /api/v1/paper-trades`\n- `GET /api/v1/stats`\n- Aiogram inline menu with screens:\n- `Signals`, `Markets`, `Paper Trades`, `Statistics`\n- placeholders for:\n- `Errors Review`, `Antipatterns`, `Settings`\n- SQLAlchemy schema aligned with `docs/DATA_MODEL.md` baseline.\n- Implemented modules:\n- market sync + snapshots\n- news ingestion + dedup\n- LLM analysis pipeline for pending news\n- signal generation with idempotency\n- paper trading open/monitor/close basics\n- auto-review + antipattern assignment\n- analytics refresh aggregation\n- Celery scheduled jobs:\n- `market_refresh_task`\n- `market_snapshot_task`\n- `news_ingestion_task`\n- `news_analysis_task`\n- `signal_generation_task`\n- `paper_trade_monitoring_task`\n- `auto_review_task`\n- `analytics_refresh_task`\n\n## Useful checks\n```bash\ndocker compose logs -f seed\ndocker compose logs -f bot\ncurl http://localhost:8000/api/v1/health\n```\n\n## Next phase\n- expand LLM analyzer from null/fake outputs to real structured Comet parsing\n- implement richer strategy config usage (thresholds, suppress/block rules, sizing)\n- add end-to-end integration tests with Postgres + Redis containers\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcore-euler%2Fpolymarket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcore-euler%2Fpolymarket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcore-euler%2Fpolymarket/lists"}