FutuOpenD in Docker
Create a .env
file
export FUTU_ACCOUNT=
export FUTU_PASSWORD=
~$ source .env
In terminal 1,
~$ docker run -i -t \
-e login_account=$FUTU_ACCOUNT \
-e login_pwd_md5=$FUTU_PASSWORD_MD5 \
-e telnet_ip=0.0.0.0 \
-e telnet_port=22222 \
-p 11111:11111 \
-p 22222:22222 \
lok0613/futu-opend-docker:latest
In terminal 2,
~$ telnet 127.0.0.1 22222
~$ > input_phone_verify_code -code=123456
~$ docker run -i -t \
-e login_account=$FUTU_ACCOUNT \
-e login_pwd_md5=$FUTU_PASSWORD_MD5 \
-p 11111:11111 \
lok0613/futu-opend-docker:latest
- Validate SMS in your computer
cd example
rm -rf /F3CNN # if exists
rm -rf .com.futunn.FutuOpenD # if exists
cp -rf /tmp/F3CNN F3CNN
cp -rf ~/.com.futunn.FutuOpenD .com.futunn.FutuOpenD
# build
docker build -t your-image .
# run
docker run -i -t \
-e login_account=$FUTU_ACCOUNT \
-e login_pwd_md5=$FUTU_PASSWORD_MD5 \
-p 11111:11111 \
your-image:latest