Code Monkey home page Code Monkey logo

xquant-1's Introduction

xquant

cross market backtesting/live-trading quant framework (developing) (定位:处理股票,数字货币交易为主的事件系统)

based on pyalgotrade

Design-Objective 设计要求

  • good-designed interface 接口简单,易于使用
  • cross-market 支持跨市场获得行情数据,支持跨市场交易
  • extendable 低耦合性, 可拓展,可以针对特定市场定制
  • event-backtest 支持事件回测
  • plot 方便的绘图展示程序
  • AI-friendly strategy paramterized 策略参数化

设计

对象模型

核心对象

* Feed (单数据类型Stream) LiveFeed/ReplayStream 单个Feed只能发出数据,数据可以被Strategy订阅		(dt, dtype, [{'symbol': '000063.SH', 'open': 15.36}])
* Stream /LiveStream/ReplayStream 单个Stream可以发出多种数据,数据可以被Strategy订阅 (dt, dtype, [{'symbol': '000063.SH', 'open': 15.36}])
* Strategy 数据来源于Feed/Stream,策略依赖于数据来源
* Broker 提供交易接口
* Analyzer 分析Broker结果
* Profiler 对单个Feed的指标/因子进行测试

辅助对象

* Dispatcher
* Sequence

思考

因为需要处理orderbook数据,理论上,对性能要求高,最终xquant可能还是需要用C/Cython写一部分

Reference

* pyalgotrade

xquant-1's People

Contributors

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