explaingit

bigbigmonkey123/futu-moni

Analysis updated 2026-05-18

13PythonAudience · developerComplexity · 4/5LicenseSetup · moderate

TLDR

A macOS tool that gets live stock quotes for JP, HK, and US markets by intercepting the Futu Niuniu desktop app's own network traffic, no API key needed.

Mindmap

mindmap
  root((futu-moni))
    What it does
      Intercept FT protocol traffic
      Read live quotes
      No API key needed
    Tech stack
      Python
      pfctl
      macOS routing
    Use cases
      Query JP HK US quotes
      Multi market lookup
      Diagnose protocol data
    Audience
      Traders
      Developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Get real-time stock quotes for Japan, Hong Kong, and US markets without an OpenD server or API key.

USE CASE 2

Query multiple stocks across different markets in a single command, for example one US, one HK, and one JP stock.

USE CASE 3

Diagnose what quote and market data fields the Futu Niuniu protocol exposes using the included probe scripts.

What is it built with?

PythonpfctlmacOS

How does it compare?

bigbigmonkey123/futu-moni1lystore/awaek47cid/wp2shell-lab
Stars131313
LanguagePythonPythonPython
Setup difficultymoderatemoderatemoderate
Complexity4/52/54/5
Audiencedevelopervibe coderresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires macOS, the Futu Niuniu desktop app installed, Python 3.11+, and sudo access to change routing and packet filter rules.

MIT license: use, modify, and distribute freely, including commercially, as long as you keep the copyright notice.

In plain English

futu-moni is a macOS tool that reads live stock price quotes for Japanese, Hong Kong, and US markets by tapping into the desktop app of Futu Niuniu, a stock trading platform popular in Asia. Instead of using Futu's official API, which normally requires an OpenD server and an API key, this project intercepts the network traffic that the Futu Niuniu desktop app already sends to Futu's own servers on your Mac, and reads the quote data straight from that traffic. To work, the tool temporarily reroutes some of the network connections on your computer to itself using macOS's built in packet filter, called pfctl, and local routing table, so it can sit between the Futu Niuniu app and the real Futu servers. On your first use of futu-moni you must log in manually inside the Futu Niuniu window that pops up, but after that first login the app can be set to log in automatically and no further manual steps are needed. Because it needs to change your Mac's network routing and packet filter rules, it must be run with administrator, or sudo, privileges. You run it either in a default mode that checks a few preset Japanese ETFs, or by naming the specific stocks you want, mixing markets in one command such as one US stock, one Hong Kong stock, and one Japan stock. It prints out the latest price, the previous close, the percentage change, and for most markets the day's open, high, low, and volume figures. Hong Kong quotes only show price, since deeper order book and volume details get cut off by how that market's data is formatted in the protocol. The project requires macOS, the Futu Niuniu desktop app already installed, and Python 3.11 or newer, and it is released under the MIT license.

Copy-paste prompts

Prompt 1
Explain in plain terms how futu-moni intercepts the Futu Niuniu app's network traffic to read stock quotes.
Prompt 2
Walk me through running futu-moni on my Mac to check quotes for AAPL, 9988, and 1306 in one command.
Prompt 3
Help me troubleshoot futu-moni's automatic login failing after FTNN restarts, based on its README's known issues.
Prompt 4
Show me how to clear leftover routes and pfctl rules from futu-moni after it exits unexpectedly.

Frequently asked questions

What is futu-moni?

A macOS tool that gets live stock quotes for JP, HK, and US markets by intercepting the Futu Niuniu desktop app's own network traffic, no API key needed.

What language is futu-moni written in?

Mainly Python. The stack also includes Python, pfctl, macOS.

What license does futu-moni use?

MIT license: use, modify, and distribute freely, including commercially, as long as you keep the copyright notice.

How hard is futu-moni to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is futu-moni for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.