Futu (moomoo)
Coming SoonAsia-Pacific Brokers
connectorType: "futu"Digital brokerage for HK, US, and China markets
Connection Architecture
Futu (moomoo)
WebSocket / REST→
Connector
libs/exchange-futu→
Provider
:8081/api→
Detector
Advisor
Studio
The connector receives data from the exchange and feeds it to Provider (port 8081). From there — to Detector, Advisor, and Studio.
Technologies
Transport
WebSocket
Authentication
OpenD LocalData Format
JSONFeatures
Local OpenD Required
Best for
- Investors requiring simultaneous access to HK, US, and China A-share markets.
- Programmatic traders leveraging the OpenD local gateway for low-latency order execution.
- Moomoo users who want to plug algorithmic strategies into their existing Futu account.
Connect via code
1Environment variables (.env)
FUTU_OPEND_HOST=your_host_here FUTU_OPEND_PORT=your_port_here
2Connector configuration
// config/config.provider.json
{
"provider": {
"connectors": [
{
"connectorType": "futu",
"enabled": true,
"markets": [
{ "marketType": "spot", "symbols": [{ "name": "BTCUSDT" }] }
],
"subscriptions": [
{ "type": "PROVIDER_MARKETDATA_CANDLE", "symbols": ["BTCUSDT"], "intervals": ["min1", "h1"], "active": true },
{ "type": "PROVIDER_MARKETDATA_TRADE", "symbols": ["BTCUSDT"], "active": true },
{ "type": "PROVIDER_MARKETDATA_ORDERBOOK", "symbols": ["BTCUSDT"], "active": true }
]
}
]
}
}3Verify and query data
# Verify connection curl -H "Authorization: Bearer $PROVIDER_API_TOKEN" \ https://localhost:8081/api/exchanges/runtime-proof # Candles (last 7 days) curl -H "Authorization: Bearer $PROVIDER_API_TOKEN" \ "https://localhost:8081/api/candles/futu/spot/BTCUSDT/h1?days=7"
Available via Barfinex API
/api/candles/futu/...
/api/trades/futu/...
/api/orderbook/futu/...
/api/account/futu/...
/api/symbols/futu/...
/api/assets/futu/...
Studio graphical setup — in development, coming in the next release.
Important
OpenD must be running locally (or on a reachable host) before Barfinex can connect — it is not a cloud API.
Futu requires OpenD to be authenticated with a valid Futu account and may prompt for 2FA on startup.
Supported Markets
Spot
Websitewww.futunn.com
Connect in Studio(soon)
Exchange Website