Code Monkey home page Code Monkey logo

rqalpha-data's Introduction

SixQuant

PyPI Version Build Status Wheel Status Coverage report Powered by SixQuant

Overview

A quick and stable data source for finance data.

提供快速稳定的金融(主要是股票)相关数据,包括实时和历史数据,数据会尽可能缓存在本地,以便提高性能同时减少服务器压力。同时,也提供了一些常用的金融辅助函数画图函数等。将来接口会全面兼容使用 RQAlpha 的 RiceQuant 和 TuShare 等常用相关库,方便用户移植代码!

  • 如果觉得本项目值得期待或有价值,感谢点这里GitHub stars给我们加star鼓励,多谢!!!
  • 如果你有任何疑问或需求想要实现,欢迎点这里GitHub issues提交您的需求。

Install

Install sixquant

$ pip3 install sixquant

Upgrade sixquant

$ pip3 install sixquant --upgrade

Quick Start

import sixquant as sq

print(rq.__version__)

df = sq.get_day_today_quote(dropna=True)
print(len(df))
print(df.head())

Docs

基本使用

Reference

Contributing contributions welcome

开发环境

Todo

  • ......

Change Logs

  • 0.0.1 2017-11-03
    • 初始版本

License

MIT

Counter

HitCount

rqalpha-data's People

Contributors

sixquant avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

rqalpha-data's Issues

macOS 安装失败

运行安装命令
pip install rqalpha-data
提示错误,并要求升级 pip,升级 pip 后,同样错误仍然存在,如下:
Collecting rqalpha-data
Using cached https://files.pythonhosted.org/packages/7b/c0/3496c1edf9c1ec4a7eaafc714fe62c8794935308c6aa1ba457b45fb8a4aa/rqalpha-data-0.0.7.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/private/var/folders/17/n3ynjfmj41b3c67bgl8y47600000gn/T/pip-install-nshlbh9u/rqalpha-data/setup.py", line 7, in
from pip.req import parse_requirements
ImportError: cannot import name 'parse_requirements'

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/17/n3ynjfmj41b3c67bgl8y47600000gn/T/pip-install-nshlbh9u/rqalpha-data/

查找解决办法,这个页面
https://stackoverflow.com/questions/25192794/no-module-named-pip-req
提到是 pip 版本的问题:

This is happening lately because of a change in pip 10.

The fix is pretty easy. You probably have something like:

from pip.req import parse_requirements
Change that to something like:

try: # for pip >= 10
    from pip._internal.req import parse_requirements
except ImportError: # for pip <= 9.0.3
    from pip.req import parse_requirements

最新的 pip 版本是19.0.1,是不是需要修改部分源码?

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.