lightweight futu opend docker
# default base image is ubuntu
docker pull manhinhang/futu-opend-docker:ubuntu-stable
Base Image | Tags |
---|---|
ubuntu | ubuntu-stable |
ubuntu | ubuntu-beta |
ubuntu | ubuntu-{opend_version} |
centos | centos-stable |
centos | centos-beta |
centos | centos-{opend_version} |
You need to create FutuOpenD.xml file generate your own RSA key
openssl genrsa -out futu.pem 1024
PEM file should config in xml
...
<rsa_private_key>/bin/futu.pem</rsa_private_key>
...
docker run -it \
-v $(pwd)/FutuOpenD.xml:/bin/FutuOpenD.xml \
-v $(pwd)/futu.pem:/bin/futu.pem \
-p 11111:11111 \
manhinhang/futu-opend-docker
docker attach futu-opend-docker
input_phone_verify_code -code=<2FA_CODE>
Edit .env
Enviroment Variable | Description |
---|---|
FUTU_ACCOUNT_ID | Futu account id |
FUTU_ACCOUNT_PWD | Futu account password |
FUTU_RSA_FILE_PATH | Futu RSA file path in container |
FUTU_OPEND_IP | Futu OpenD IP in container |
FUTU_OPEND_PORT | Futu OpenD Port in container |
docker compose up -d
Then enter 2FA code
docker attach futu-opend
input_phone_verify_code -code=<2FA_CODE>
docker build -t futu-opend-docker --build-arg FUTU_OPEND_VER=7.1.3308 --build-arg BASE_IMG=ubuntu .
docker build -t futu-opend-docker --build-arg FUTU_OPEND_VER=7.1.3308 --build-arg BASE_IMG=centos .
This project is not affiliated with Futu Securities International (Hong Kong) Limited.
Good luck and enjoy.