Skip to content

Add Futu OpenAPI integration for HK and US trading - #203

Open
dl-sdu wants to merge 3 commits into
OpenByteInc:mainfrom
dl-sdu:feat/futu-openapi
Open

Add Futu OpenAPI integration for HK and US trading#203
dl-sdu wants to merge 3 commits into
OpenByteInc:mainfrom
dl-sdu:feat/futu-openapi

Conversation

@dl-sdu

@dl-sdu dl-sdu commented Aug 12, 2026

Copy link
Copy Markdown

Summary

  • add Futu market-data and simulated/live trading support for HK and US stocks, including credentials, symbol mapping, API routes, and strategy execution
  • harden private execution streams and REST reconciliation against duplicate fills, reconnect races, and missed ledger projections
  • add a secure WSL/Docker OpenD bridge that keeps the gateway loopback-only and avoids SDK/relay connection leaks

Test plan

  • Run Futu-focused regression suite: 45 passed, 1 skipped
  • Run execution-stream and ledger regression suite: 26 passed
  • Validate Docker Compose services and container-to-OpenD quote/trade permissions
  • Complete an HK simulated Tencent round trip (buy 100 at 456.60, sell 100 at 456.80) and verify PostgreSQL ledger reconciliation and zero final position

dl-sdu added 3 commits August 13, 2026 02:09
Integrate Futu market data and trading with secure OpenD configuration, resilient client lifecycles, and simulated/live execution support.
Prevent duplicate fills, preserve session-bar routing, and make push/REST reconciliation fail closed across reconnects.
Keep OpenD loopback-only for WSL deployments while preventing relay, SDK log, and reconciliation connection leaks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant