Stock Portfolio Visualization made for FUTU/Moomoo users.
This is a web app that visualizes your stock portfolio data purely from the browser-side (client-side, locally). It does not require any server-side processing or database.
FUTU/Moomoo does not provide proper scope-managed API for third-party apps. Thus, for 100% security and privacy, this app does not ask for any account credentials or tokens. Instead, it relies on you to export your portfolio data via moomoo's official API yourself. We provide a simple script to do that and the script doesn't handle any part of the authentication.
Read the following section for step-by-step instructions.
- You need to be a FUTU/Moomoo user with an active account, anywhere in the world (incl. US, HK, SG, etc.).
- Download the latest moomoo OpenD GUI Client to your local machine.
- Choose
moomoo OpenAPI>moomoo OpenD> Latest Version. - Note that you are downloading
moomoo OpenDinstead ofmoomoo API. - After downloading, run the installer and follow the instructions to install it.
- Choose
- Run the
moomoo OpenDclient and login to your FUTU/Moomoo account.- Use all default settings and login with your account credentials. By default, it should have parameters like:
IP:127.0.0.1Port:11111
- When you login for the first time on a new device, it will ask you to authenticate via 2FA. Save your login details and check the automatic login checkbox will allow you to login smoothly next time.
- Once you are logged in, leave it running in the background.
- Use all default settings and login with your account credentials. By default, it should have parameters like:
-
Clone this repository:
git clone https://github.com/mxshell/Alloc.git cd Alloc -
Set up the Python environment:
cd python uv sync -
Run the export script:
uv run moomoo_export.py
- After the script is done, you will find the exported data (a single JSON file) in the
pythondirectory. - Once you have the exported data, you can close/terminate the
moomoo OpenDclient.
- After the script is done, you will find the exported data (a single JSON file) in the
Environment:
Node.jspnpm(optional, but recommended)
Commands:
- Install app dependencies:
pnpm installornpm install - Run the app:
pnpm run devornpm run dev
- Open the
Allocweb app in your browser.- Publicly hosted at https://mxshell.dev/Alloc
- or use your locally hosted app by opening http://localhost:3000 in your browser.
- Simply drag and drop the exported JSON file into the app.