lightweight futu opend docker
# default base image is ubuntu
docker pull manhinhang/futu-opend-docker
You need to create FutuOpenD.xml file generate your own RSA key
openssl genrsa -out futu.pem 1024
docker run \
-v $(pwd)/FutuOpenD.xml:/bin/FutuOpenD.xml \
-v $(pwd)/futu.pem:<RSA_KEY_PATH_IN_XML> \
--p 11111:11111 \
manhinhang/futu-opend-docker
- Attach to futu opend continer
docker attach futu-opend-docker
- Input received SMS passcode
input_phone_verify_code -code=<2FA_CODE>
Edit .env
Enviroment Variable | Description |
---|---|
RSA_FILE_PATH | RSA file path in container |
RSA_FILE_LOCAL_PATH | RSA file local path |
FUTU_OPEND_XML_LOCAL_PATH | FutuOpend XML local file path |
sh script/update_futu_xml.sh $FUTU_ACCOUNT_ID $RSA_FILE_PATH $FUTU_ACCOUNT_PWD
docker compose up -d
Then enter 2FA code
docker attach futu-opend
input_phone_verify_code -code=<2FA_CODE>
- Use ubuntu as base image
docker build -t futu-opend-docker --build-arg FUTU_OPEND_VER=7.1.3308 --build-arg BASE_IMG=ubuntu .
- Use centos as base image
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.