Giter Club home page Giter Club logo

stock-trade-workerman's Introduction

stock-trade-workerman

采用workerman框架实现的真实股票交易服务端

#介绍 这是一个使用php实现的可多并发、长连接的股票交易服务端。
该服务端通过使用t2sdk php扩展连接恒生开放平台,进行股票交易。
该项目使用workerman长连接php框架, monolog日志输出,t2sdk扩展链接。
目前消息传递(请求发送和返回数据)均采用的是json格式

#使用教程

  1. 需要安装t2sdk扩展,请参见(https://github.com/caizixingit/php-t2sdk-ext). 很久没有使用c++,代码方面有点捉急,见谅~~~
  2. 恒生开放平台注册测试账号,需要下载libt2sdk.so和t2sdk.ini,该文件不再项目中,需要另行配置。。。
  3. 在目录T2Gateway/Config/T2Config.php目录下,需要将刚才下载的libt2sdk.so和t2sdk.ini文件地址配置好。
  4. php start.php start开启服务
  5. T2Gateway/cmd文件包含了目前支持的几个接口

#参考 workerman(https://github.com/walkor/Workerman)
monolog(https://github.com/Seldaek/monolog)
t2sdk(https://github.com/caizixingit/php-t2sdk-ext)

stock-trade-workerman's People

Contributors

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