Moomoo API is a Node.js WebSocket client for accessing moomoo's OpenAPI platform, providing real-time market data and trading capabilities for quantitative trading. Current stable version is 10.7.6708. The API supports streaming quotes, order placement, account information retrieval, and more. It is maintained by moomoo (formerly Futu) and uses a custom versioning scheme. Key differentiators include direct access to moomoo's brokerage services, low-latency WebSocket connections, and comprehensive API documentation. The package is primarily used in the Chinese quantitative trading ecosystem.
npm install moomoo-apiNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to the local moomoo OpenD server, retrieves account list, and logs it.
Update to use new ProtoID constants from the package or regenerate protobuf definitions. Refer to changelog for mapping.
Use new MoomooClient constructor with 'connectionType' option. Remove any calls to 'initConnect'.
Pin exact version in package.json, e.g., "moomoo-api": "10.7.6708". Avoid using ranges.
Ensure OpenD is installed and running on the specified host/port before connecting.
Run 'npm install moomoo-api@10.7.6708 --save' with exact version.
Use 'const moomoo = require('moomoo-api'); new moomoo.MoomooClient(...)'.Start OpenD server on localhost:11111 or change host/port in MoomooClient options.