51bitquant / thenextquant

事件驱动的量化交易/做市框架。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TheNextQuant

异步事件驱动的量化交易/做市系统。

框架依赖

  • 运行环境

    • python 3.5.3 或以上版本
  • 依赖python三方包

    • aiohttp>=3.2.1
    • aioamqp>=0.10.0
  • RabbitMQ服务器

    • 事件发布、订阅

安装

使用 pip 可以简单方便安装:

pip install -e git+https://github.com/TheNextQuant/thenextquant.git#egg=thenextquant

or

pip install thenextquant

Demo使用示例

  • 推荐创建如下结构的文件及文件夹:
ProjectName
    |----- docs
    |       |----- README.md
    |----- scripts
    |       |----- run.sh
    |----- config.json
    |----- src
    |       |----- main.py
    |       |----- strategy
    |               |----- strategy1.py
    |               |----- strategy2.py
    |               |----- ...
    |----- .gitignore
    |----- README.md
  • 快速体验示例 Demo

  • 运行

python src/main.py config.json

使用文档

本框架使用的是Python原生异步库(asyncio)实现异步事件驱动,所以在使用之前,需要先了解 Python Asyncio

当前支持交易所

Change Logs

FAQ

About

事件驱动的量化交易/做市框架。

License:MIT License


Languages

Language:Python 100.0%