Code Monkey home page Code Monkey logo

futu-opend-docker's Introduction

Futu OpenD Docker

Docker Pulls GitHub

lightweight futu opend docker

Pull the docker image from docker hub

# default base image is ubuntu
docker pull manhinhang/futu-opend-docker

Create a container from the image and run it

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

Input 2FA code

  1. Attach to futu opend continer
docker attach futu-opend-docker
  1. Input received SMS passcode
input_phone_verify_code -code=<2FA_CODE>

Run in docker compose

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>

Build locally

  • 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 .

Disclaimer

This project is not affiliated with Futu Securities International (Hong Kong) Limited.

Good luck and enjoy.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.