Skip to content

chasenlabs/opend

Repository files navigation

Futu OpenD & moomoo OpenD

GitHub Actions Workflow Status GitHub Release Date GitHub Release

使用 docker 运行富途 OpenD,并且每天检查更新到最新版。

Using docker to run Futu OpenD / moomoo OpenD and automatically update to the latest version daily.

Important

This project is not officially supported by Futu/moomoo, and the author is not responsible for any problems caused by the use of this project.

这个项目不是富途/ moomoo官方支持的,作者对使用这个项目造成的任何问题不负责任。

Quick Start

using docker run

more parameters see start with command

# futu
docker run -d --name opend -p 11111:11111 ghcr.io/chasenlabs/futu-opend:latest \
    /docker-entrypoint.sh \
    -login_account=<account number> \
    -login_pwd_md5=<md5 string> \
    -api_port=11111 \
    -api_ip=0.0.0.0 \
    -telnet_port=22222 \
    -lang=chs
# moomoo
docker run -d --name opend -p 11111:11111 ghcr.io/chasenlabs/moomoo-opend:latest \
    /docker-entrypoint.sh \
    -login_account=<account number> \
    -login_pwd_md5=<md5 string> \
    -api_port=11111 \
    -api_ip=0.0.0.0 \
    -telnet_port=22222 \
    -lang=en

using docker-compose run

启动之前请配置运行参数 docker-compose / start before config docker-compose

docker-compose up

get example config file from container

docker cp opend:/opend/FutuOpenD.xml ./FutuOpenD.xml # fufu
docker cp opend:/opend/OpenD.xml ./OpenD.xml # moomoo

if you want use login_pwd_md5 to login, you can use below command to get md5 string

md5 -s <your_password>

ops

输入手机验证码 / enter mobile phone verification code, ops docs is here

docker exec -it opend bash
# syntax: telnet <addr> <telnet port>
telnet 127.0.0.1 22222
input_phone_verify_code -code=<code>

Self Build

clone the repo

git clone https://github.com/chasenlabs/opend.git
# futu
docker build \ 
  --build-arg BRAND=Futu \
  --build-arg DOMAIN=futunn.com \
  --build-arg BIN_NAME=FutuOpenD \
  -t futu-opend \ 
  -f Dockerfile .

# moomoo
docker build \ 
  --build-arg BRAND=moomoo \
  --build-arg DOMAIN=futustatic.com \
  -t futu-opend \ 
  -f Dockerfile .

Testing

testing prepare

pip install -r requirements.txt
# if you located in China, you can use aliyun mirror to speed up
pip install -r requirements.txt  -i https://mirrors.aliyun.com/pypi/simple/

testing with main.py

python main.py --addr <futu opend ip>

Support

If you like this project, please consider supporting me for coffee ☕️

Buy Me A Coffee get youtself link