{"id":51011496,"url":"https://github.com/xsa-dev/aegis-market-operator","last_synced_at":"2026-06-21T03:03:47.412Z","repository":{"id":358145649,"uuid":"1240220134","full_name":"xsa-dev/aegis-market-operator","owner":"xsa-dev","description":"Minimal full-stack demo for Agora Agents Hackathon: signal → reasoning → risk gate → execute → (mock) Arc/USDC settlement → audit","archived":false,"fork":false,"pushed_at":"2026-05-23T19:02:02.000Z","size":3998,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-23T21:07:34.488Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/xsa-dev.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":null,"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-15T22:26:00.000Z","updated_at":"2026-05-23T19:02:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/xsa-dev/aegis-market-operator","commit_stats":null,"previous_names":["xsa-dev/aegis-market-operator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xsa-dev/aegis-market-operator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xsa-dev%2Faegis-market-operator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xsa-dev%2Faegis-market-operator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xsa-dev%2Faegis-market-operator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xsa-dev%2Faegis-market-operator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xsa-dev","download_url":"https://codeload.github.com/xsa-dev/aegis-market-operator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xsa-dev%2Faegis-market-operator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34592058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-21T02:00:05.568Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-06-21T03:03:46.944Z","updated_at":"2026-06-21T03:03:47.405Z","avatar_url":"https://github.com/xsa-dev.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Agora Market Operator — Minimal Full-Stack Demo (Hackathon)\n\nThis is a **minimal end-to-end demo** of the concept described in `~/Agora_Agents_Hackathon/`:\n\n**signal → reasoning → risk gate → execution → (mock) Arc/USDC settlement → audit trail**\n\nNo real exchange trading, no real Arc integration — everything is safe and mockable, but the *pipeline is real* and observable.\n\n## What you get\n\n- FastAPI backend with a single \"run\" endpoint that simulates the full pipeline\n- SQLite audit log (every run is stored and retrievable)\n- Simple static web UI (vanilla JS) to run the demo and display all steps\n\n## Run locally (dev)\n\n```bash\ncd ~/agora-demo\npython -m venv .venv\nsource .venv/bin/activate\npip install -r requirements.txt\nuvicorn app.main:app --reload --port 8000\n```\n\nOpen: http://localhost:8000\n\n## Run with Docker\n\n```bash\ncd ~/agora-demo\ndocker build -t agora-demo .\ndocker run --rm -p 8000:8000 agora-demo\n```\n\n## API\n\n- `GET /health`\n- `POST /api/run_demo`\n- `GET /api/audit/{audit_id}`\n\nExample:\n```bash\ncurl -s http://localhost:8000/api/run_demo \\\n  -H 'content-type: application/json' \\\n  -d '{\"symbol\":\"BTCUSDT\",\"price\":68000,\"funding_rate\":0.0001,\"top2_concentration\":0.42,\"dd\":0.08,\"fee_drag\":0.12}' | jq\n```\n\n## Notes\n\n- The \"LLM reasoning\" step is **deterministic** by default (safe for demos). You can later swap it for a real structured-output model.\n- The \"Settlement\" step writes a mock record shaped like an Arc/USDC settlement.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxsa-dev%2Faegis-market-operator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxsa-dev%2Faegis-market-operator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxsa-dev%2Faegis-market-operator/lists"}