Git Product home page Git Product logo

backend-ctp's Introduction

CTP后台服务程序

操盘大哥v2.0的ctp后台

安装

Linux

  • 安装依赖:sudo dnf install cmake hiredis-devel

  • 安装redis++

  • 如果使用/usr/local目录存放.so文件,需要将/usr/local/lib, /usr/local/lib64/ 加入 etc/ld.so.conf

    同时将api目录中的so文件复制到/usr/lib64/, 执行sudo ldconfig刷新一下

  • 进去源码目录,执行标准cmake安装:

    mkdir build && cd build && cmake ..

    cmake --build . --target backend-ctp --config release

  • 编译后的执行程序 backend-ctp 位于/usr/local/bin 目录下

  • 参考config-example.ini,在"~/.config/backend-ctp/"目录下新建config.ini, 填入服务器的ip和mac地址、修改相关配置项。

Windows

  • 源码已包含编译好的hiredis和redis++静态库,不需要额外安装。
  • 使用vs stdio或clion直接编译即可,
  • 程序运行需要将ctp的3个dll放在执行文件相同目录下
  • 参考config-example.ini,在执行文件目录下新建config.ini, 填入服务器的ip和mac地址、修改相关配置项。

backend-ctp's People

Contributors

timercrack avatar

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.