{"id":31037244,"url":"https://github.com/openbankproject/obp-trading","last_synced_at":"2025-09-14T04:56:23.530Z","repository":{"id":311628591,"uuid":"1044245500","full_name":"OpenBankProject/OBP-Trading","owner":"OpenBankProject","description":"A set of trading endpoints and system that interacts lightly with OBP Accounts","archived":false,"fork":false,"pushed_at":"2025-08-25T15:08:41.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-25T17:24:05.808Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenBankProject.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2025-08-25T11:54:17.000Z","updated_at":"2025-08-25T15:08:46.000Z","dependencies_parsed_at":"2025-08-25T17:24:51.861Z","dependency_job_id":"056c68ba-fcaa-4d9e-947d-f7103e7cf601","html_url":"https://github.com/OpenBankProject/OBP-Trading","commit_stats":null,"previous_names":["openbankproject/obp-trading"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/OpenBankProject/OBP-Trading","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenBankProject%2FOBP-Trading","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenBankProject%2FOBP-Trading/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenBankProject%2FOBP-Trading/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenBankProject%2FOBP-Trading/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenBankProject","download_url":"https://codeload.github.com/OpenBankProject/OBP-Trading/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenBankProject%2FOBP-Trading/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275062961,"owners_count":25398887,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"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":"2025-09-14T04:56:21.325Z","updated_at":"2025-09-14T04:56:23.523Z","avatar_url":"https://github.com/OpenBankProject.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OBP-Trading\n\nScala-based trading engine for the Open Bank Project (OBP) ecosystem.\n\n## Status\n\n**Current Version: 0.1.0-SNAPSHOT**  \n**Development Phase: Model Architecture Complete (85%)**\n\n### WIP\n- ✅ Scala project structure with SBT\n- ✅ Core trading models with account integration\n- ✅ Connector architecture (Redis, PostgreSQL, Kafka, RabbitMQ)\n- ✅ RedisOfferConnector implementation\n- ✅ Comprehensive validation framework\n- ✅ OBP Account Holds integration design\n\n### What's Not Working Yet\n- 🚧 HTTP API endpoints\n- 🚧 Authentication middleware\n- 🚧 Database migrations\n- 🚧 OBP-API client integration\n- 🚧 WebSocket streaming\n\n## Architecture\n\n```\nTrading Engine (Scala + http4s)\n├── Models: Offer, Trade, AccountReservation\n├── Connectors: Redis, PostgreSQL, Kafka, RabbitMQ\n├── Validation: Account, Permission, Business Rules\n└── OBP Integration: Account Holds + Transaction Requests\n```\n\n## Key Design Decisions\n\n1. **Account-Linked Trading**: Every offer/trade linked to OBP bank accounts\n2. **OBP Account Holds**: Use OBP-API holds for fund reservation (no separate accounts)\n3. **Two-Layer Money**: FIAT via OBP Transactions, trading via account holds\n4. **Audit Trail**: `user_id` and `consent_id` on all operations\n5. **Fully Qualified IDs**: `offerId`, `tradeId`, etc. (no generic \"id\" fields)\n\n## Prerequisites\n\n- Scala 2.13.15+\n- SBT 1.9+\n- Java 11+\n- PostgreSQL 14+\n- Redis 6+\n- OBP-API instance\n\n## Quick Start\n\n```bash\n# Clone and build\ngit clone https://github.com/OpenBankProject/OBP-Trading\ncd OBP-Trading\nsbt compile\n\n# Configure\ncp src/main/resources/application.conf.example src/main/resources/application.conf\n# Edit database and OBP-API settings\n\n# Run (when ready)\nsbt run\n```\n\n## Configuration\n\n```hocon\n# OBP Integration\nobp.api.baseUrl = \"https://api.openbankproject.com\"\nobp.auth.jwtPublicKeyUrl = \"https://api.openbankproject.com/.well-known/jwks.json\"\n\n# Connectors\nconnectors {\n  offer.type = \"redis\"     # Fast offer storage\n  trade.type = \"postgres\"  # Persistent trade records  \n  user.type = \"obp-api\"    # OBP user integration\n}\n```\n\n## Development\n\nSee `ai.log` for detailed development history and architectural decisions.\n\n## License\n\nAGPL-3.0  \nCopyright (c) TESOBE 2025. All rights reserved.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenbankproject%2Fobp-trading","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenbankproject%2Fobp-trading","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenbankproject%2Fobp-trading/lists"}