
In simple English
This library lets your computer program talk to the Futu trading platform. You can pull stock prices, view order books, and buy or sell shares automatically. It does not cost money to download, but you must have a funded brokerage account to trade real money. You also need to run a separate desktop gateway program on your computer while your script is running. If the gateway loses its connection, your automated script will stop working.
What it is
A Python software development kit (a collection of code tools that help programmers build software for a specific service) for the Futu Open API (application programming interface, a way for different programs to talk to each other). It communicates with a local desktop gateway to send commands to global stock exchanges.
What it is good for
Solo builders and traders who want to write custom stock trading strategies in Python without building a connection to a broker from scratch.
- Provides ready-to-use Python functions for quotes, orders, and account details.
- Includes sample trading strategies in the source files to help you learn.
- Apache-2.0 licence (allows you to use and modify the code freely).
- Requires running a proprietary desktop gateway application alongside your script.
- Targeted specifically at one broker, so your code will not work with other brokers without a rewrite.
- Documentation and examples are primarily written in Chinese.
Writing custom network requests to connect to a broker's trading system
Pandas for analysing stock price data in your Python scripts
- ccxt/ccxt45k stars
Connects to crypto exchanges instead of stock brokers, but serves a similar purpose for automated trading.
- jesse-ai/jesse8.7k stars
A Python framework for writing crypto trading strategies, testing them against past prices, and running them live.
- hummingbot/hummingbot20k stars
A free framework for writing and running automated trading programs on cryptocurrency exchanges.
- lballabio/QuantLib7.7k stars
The long-established free library for pricing and risk-managing financial instruments.
source venv/bin/activate pip install futu-api