Code Monkey home page Code Monkey logo

deltatrader's Introduction

DeltaTrader

py37 version

DeltaTrader,致力于打造一个极简好用的程序化交易框架,便于个人投资者优化自己的交易系统。

主要包含4大功能:获取行情数据(data)、创建交易策略(strategy)、计算评估指标并完成回测(backtest),以及模拟实盘交易(trader)的部分。

合作招募

有意向重构or进行功能优化的,欢迎合作,微信:DeltaF_

简介

DeltaTrader是一个开源的量化交易接口,实现自动交易从未那么简单。

使用不到10行代码,你就可以获取任意A股数据,并实现自动化交易。

安装

可以通过clone该项目,实现引用。

简单入门实例

有了DeltaTrader,如果你想要获取股票数据,只需要这样:

import data.stock as st

data = st.get_single_price(code='000001.XSHE',
                           time_freq='daily',
                           start_date='2021-01-01',
                           end_date='2021-02-01')

数据导出

将数据导出为.csv格式:

import data.stock as st

data = st.get_single_price(code='000001.XSHE')

st.export_data(data=data, filename='000001.XSHE', type='price')

功能模块

  • 行情数据:目前提供2中数据源获取方式(JQData数据接口、财经网站爬虫)
  • 策略模型
  • 自动化交易

参与作者

  • deltaf: 构架及维护Python3版本
  • ACE:实时爬取财经网站股票行情数据

(待添加)

问题和建议

如果有什么问题或者建议都可以在这里和我讨论

deltatrader's People

Contributors

acekylin avatar delta-f avatar on3o 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.