{"id":50371164,"url":"https://github.com/dozken/ibkr-trader-core","last_synced_at":"2026-05-30T07:02:48.452Z","repository":{"id":358963605,"uuid":"1243857630","full_name":"dozken/ibkr-trader-core","owner":"dozken","description":"Shariah-compliant IBKR trading bot framework with pluggable Strategy interface (open-core)","archived":false,"fork":false,"pushed_at":"2026-05-28T20:24:06.000Z","size":728,"stargazers_count":0,"open_issues_count":10,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-28T20:25:40.867Z","etag":null,"topics":["aaoifi","algotrading","fastapi","halal","ibkr","interactive-brokers","open-core","python","quant","react","shariah","trading-bot"],"latest_commit_sha":null,"homepage":"https://github.com/dozken/ibkr-trader-core","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dozken.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"docs/SECURITY.md","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-19T18:25:23.000Z","updated_at":"2026-05-28T20:22:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"a7b051a4-f251-468a-a1b5-b3f3264fe874","html_url":"https://github.com/dozken/ibkr-trader-core","commit_stats":null,"previous_names":["dozken/ibkr-trader-core"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dozken/ibkr-trader-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dozken%2Fibkr-trader-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dozken%2Fibkr-trader-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dozken%2Fibkr-trader-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dozken%2Fibkr-trader-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dozken","download_url":"https://codeload.github.com/dozken/ibkr-trader-core/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dozken%2Fibkr-trader-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33682998,"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-05-30T02:00:06.278Z","response_time":92,"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":["aaoifi","algotrading","fastapi","halal","ibkr","interactive-brokers","open-core","python","quant","react","shariah","trading-bot"],"created_at":"2026-05-30T07:02:47.293Z","updated_at":"2026-05-30T07:02:48.443Z","avatar_url":"https://github.com/dozken.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ibkr-trader-core\n\n[![CI](https://github.com/dozken/ibkr-trader-core/actions/workflows/ci.yml/badge.svg)](https://github.com/dozken/ibkr-trader-core/actions/workflows/ci.yml)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n[![Python 3.11+](https://img.shields.io/badge/python-3.11+-blue.svg)](https://www.python.org/downloads/)\n[![FastAPI](https://img.shields.io/badge/FastAPI-009688?logo=fastapi\u0026logoColor=white)](https://fastapi.tiangolo.com/)\n[![React](https://img.shields.io/badge/React-18-61DAFB?logo=react\u0026logoColor=white)](https://react.dev/)\n\nShariah-compliant trading bot framework for Interactive Brokers, with a pluggable strategy interface.\n\n\u003e Open-core of [ibkr-trader](https://github.com/dozken/ibkr-trader) — the framework is MIT, run it with the bundled SMA reference strategy or plug in your own.\n\n## What you get\n\n- **FastAPI backend + React frontend** — full webapp with portfolio, settings, alerts, compliance, zakat pages.\n- **IBKR integration** — order routing, reconciliation, account manager.\n- **AAOIFI Shariah screening** — debt/cash/revenue ratio checks, sector blocklist, dynamic VIX-aware buffer.\n- **Zakat calculator** — hawl tracking, purification of haram income.\n- **Multi-channel alerts** — Telegram, email, Slack.\n- **Observability** — Prometheus metrics + provisioned Grafana dashboard.\n- **Pluggable `Strategy` interface** — ship with SMA crossover and buy-and-hold reference impls, swap with your own via env var.\n\n## What you don't get (by design)\n\nThis is the framework. The author's private alpha strategies (ML/RL signal models, tuned halal universe filters, trained weights) live in a separate proprietary repo. You can run this with the included reference strategies, or write your own.\n\n## Quick start\n\n```bash\ngit clone https://github.com/dozken/ibkr-trader-core.git\ncd ibkr-trader-core\ncp ibkr_core/.env.example ibkr_core/.env  # then fill in your IBKR creds\ndocker compose up --build\n```\n\nOpen \u003chttp://localhost:8000/docs\u003e for API, \u003chttp://localhost:3000\u003e for UI.\n\nBy default uses `SMACrossover` strategy. To swap:\n```bash\nSTRATEGY_CLASS=ibkr_core.strategies.buy_and_hold:BuyAndHold docker compose up\n```\n\n## Plug in your own strategy\n\n```python\n# my_alpha/strategy.py\nfrom ibkr_core.core.strategy import Strategy, MarketContext\nfrom ibkr_core.features.trading.schemas import TradeSignal\n\nclass MyAlpha(Strategy):\n    name = \"MyAlpha\"\n\n    async def generate_signals(self, ctx: MarketContext) -\u003e list[TradeSignal]:\n        # your logic\n        return [...]\n```\n\nThen run:\n```bash\nSTRATEGY_CLASS=my_alpha.strategy:MyAlpha docker compose up\n```\n\nSee [`ibkr_core/core/strategy/base.py`](ibkr_core/core/strategy/base.py) for the full interface, or the [example momentum strategy](examples/momentum_strategy/) for a complete external plugin.\n\n## Compliance\n\nScreening follows AAOIFI Shariah standards (33% debt-to-asset, 33% cash-to-asset, 5% non-compliant revenue caps by default). Buffers tighten under VIX stress. See [`docs/COMPLIANCE.md`](docs/COMPLIANCE.md).\n\n**Riba (interest), short selling, margin, and gharar-heavy instruments are blocked at the framework level — not just the strategy.**\n\n## Project layout\n\n```\nibkr_core/\n  core/                  framework primitives (db, auth, audit, websocket)\n  core/strategy/         Strategy ABC + plugin loader\n  strategies/            SMA + buy-and-hold reference impls\n  features/\n    compliance/          AAOIFI screening\n    zakat/               hawl + purification calc\n    trading/             IBKR integration, order routing\n    portfolio/           positions + P\u0026L\n    alerts/              telegram / email / slack\n    settings/\n  migrations/            alembic\nfrontend/                React + Vite + Tailwind\ninfra/                   prometheus + grafana provisioning\ndocs/                    architecture + ops guides\n```\n\n## Status\n\nEarly beta (v0.3.x). Strategy interface is stable; other APIs may change before 1.0.\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md). Bug fixes, new reference strategies, and compliance improvements welcome.\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdozken%2Fibkr-trader-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdozken%2Fibkr-trader-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdozken%2Fibkr-trader-core/lists"}