Code Monkey home page Code Monkey logo

Comments (5)

ftong2010 avatar ftong2010 commented on June 28, 2024

哦,我的环境是Ubuntu 16.04 Desktop, Python 3.5,从远程桌面SSH进系统

from dhydra.

Emptyset110 avatar Emptyset110 commented on June 28, 2024

@ftong2010 谢谢关注。说实话这东西还很不完善。不过你提出的这一点呢,我最出的设计是os.getcwd()(运行环境当前目录)下面是自己需要建立一个Worker文件夹的,用来放置自己写的Worker,这个目录结构确实与./dHydra/目录的结构有相似性。在搜索的时候我是自己设置了这样的逻辑:先检测运行当前目录下的Worker文件夹内是否有这个Worker,没有的话再去dHydra目录下寻找,因为dHydra目录下的可能是我写的(可以理解为)“内置的”Worker,而开发者二次开发的时候只需要在当前目录下建立Worker,而不需要去修改dHydra/中的内容

from dhydra.

ftong2010 avatar ftong2010 commented on June 28, 2024

你这个逻辑我在代码里一点也没看出来啊。。。。。。。。。。。。。。。。。。。。

麻烦问一下你这个from ctp.future中的ctp具体是哪一个包?我印象里CTP没有官方的Python包啊

from dhydra.

Emptyset110 avatar Emptyset110 commented on June 28, 2024

@ftong2010 前面那个逻辑你可以在dHydra.core.Functions里看到(就是实例化Worker和Vendor的函数)
ctp.future,你参考这里
https://github.com/lovelylain/pyctp/
按照他的README可以完成编译的。但是封装得不够好,我也在继续封装,现在(交易部分)大致能用,CTP行情是很容易调用的。pyctp里也有example

from dhydra.

ftong2010 avatar ftong2010 commented on June 28, 2024

好的,谢谢啦,我再研究一下

from dhydra.

Related Issues (5)

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.