ping |
Ping the gateway |
quote <symbols...> |
Real-time quotes |
snapshot <symbols...> |
Snapshot |
kline <symbol> [--type day] [--count 100] |
Candles |
orderbook <symbol> [--depth 10] |
Level-2 book |
ticker <symbol> [--count 100] |
Tick-by-tick |
rt <symbol> |
Intraday time-series |
static <symbols...> |
Static security info |
broker <symbol> |
Broker queue |
plate-list <market> |
Plate/sector list |
plate-stocks <plate-id> |
Stocks in a plate |
sub <symbols...> -t <types> |
Subscribe (types: basic/orderbook/ticker/broker/rt/kline) |
account |
List accounts |
funds <acc-id> --market HK |
Funds |
position <acc-id> --market HK |
Positions |
order <acc-id> --market HK |
Orders of the day |
deal <acc-id> --market HK |
Fills of the day |
unlock-trade --env real [--otp <code>] [--security-firm <FIRM>] [--acc-ids <CSV>] |
Unlock trading (prompts for password); v1.4.31+ --otp for 2FA token; v1.4.33+ --security-firm restricts to one broker (1-7 digit / official name FutuHK..FutuJP / alias hk..jp), omit = all brokers; v1.4.34+ --acc-ids comma-separated acc_id list (intersects with --security-firm, resolves shadow sub-account blocking main account) |
set-trade-pwd |
Save trade password into the OS keychain (read by futu-mcp's futu_unlock_trade tool; v1.4+) |
clear-trade-pwd |
Remove trade password from the OS keychain (v1.4+) |
set-login-pwd --account <id> |
v1.4.18+: store an account's login password in the OS keychain (futu-opend reads it automatically) |
clear-login-pwd --account <id> |
v1.4.18+: remove the stored login password for an account |
gen-key --id <n> --scopes <list> |
Generate a key |
list-keys |
List all keys |
revoke-key <id> |
Revoke a key |
bind-key <id> --this-machine / --replace / --clear / --freeze |
Edit machine binding in place |
machine-id [--for-key <id>] |
Show this machine's fingerprint |
repl |
Interactive REPL (shared long connection + live push display) |
history-orders / history-deals |
v1.4.25+: historical orders / fills query |
max-qtys |
v1.4.25+: pre-trade max buy/sell qty |
place-order / modify-order / cancel-order |
v1.4.25+: place / modify / cancel (real env requires --confirm, default env=simulate) |
capital-flow <symbol> |
v1.4.26+: capital flow time series |
capital-distribution <symbol> |
v1.4.26+: capital distribution (super/large/medium/small order flow) |
market-state <symbols> |
v1.4.26+: market state (open / closed / lunch / after-hours) |
owner-plate <symbols> |
v1.4.26+: plates containing the stock |
option-chain <owner> --begin --end [--delta-min/--iv-max/...] |
v1.4.26+: option chain (call/put list by expiry; supports Greek server-side filters) |
trading-days --market --begin --end |
v1.4.30+: trading day list |
rehab <symbol> |
v1.4.30+: rehab factors (long-term K-line alignment / backtest) |
suspend <symbols> --begin --end |
v1.4.30+: suspension days |
user-security <group> |
v1.4.30+: securities in a watchlist group |
user-security-groups [--group-type] |
v1.4.30+: list watchlist groups |
warrant [--owner] [--num] |
v1.4.30+: warrant list (volume desc) |
ipo-list --market <HK/US/CN> |
v1.4.30+: IPO list |
future-info <symbols> |
v1.4.30+: futures contract info |
stock-filter --market [--begin --num] |
v1.4.30+: stock scanner (minimal; advanced filters via REST) |
cancel-all-order <acc-id> [--market] [--confirm] |
v1.4.30+: cancel all pending orders (real requires --confirm) |
global-state |
v1.4.30+: gateway global state (market open/close, server version, login status) |
user-info |
v1.4.30+: user info (nickname / permissions / quota) |
delay-statistics |
v1.4.30+: delay-statistics summary |
query-subscription [--all-conn] |
v1.4.30+: query current subscriptions |
used-quota |
v1.4.110+: query current used subscription and historical K-line quota |
unsubscribe [--symbols --sub-types] [--all] |
v1.4.30+: unsubscribe market data |
history-kl-quota [--detail] |
v1.4.30+: historical K-line download quota |
holding-change <symbol> --category |
v1.4.30+: shareholder changes (executive / institution / fund) |
modify-user-security <group> --op <symbols> |
v1.4.30+: modify a watchlist group |
code-change <symbols> |
v1.4.30+: security code changes / temporary tickers (HK for now) |
set-price-reminder <symbol> --op |
v1.4.30+: set price reminder |
price-reminder [--symbol/--market] |
v1.4.30+: query price reminders |
option-expiration-date <owner> |
v1.4.30+: option expiry date list |
sub-acc-push <acc-ids> |
v1.4.30+: subscribe order/deal push for accounts |
acc-cash-flow <acc-id> --date / --date-range |
v1.4.30+: account cash flow statement (v1.4.32+ adds date range with 31-day cap, auto-skips weekends) |
daemon-status [--rest-url --api-key] |
v1.4.32+: daemon health snapshot (login / broker channels / cipher readiness) |
daemon-reload [--rest-url --api-key] |
v1.4.32+: drop cipher cache + v1.4.47 refresh on-disk credentials (remember-login) |
daemon-shutdown [--rest-url --api-key] |
v1.4.32+: graceful daemon exit (within 1s); systemd / Docker decides restart |