tushare


Nametushare JSON
Version 1.4.19 PyPI version JSON
download
home_pagehttps://tushare.pro
SummaryA utility for crawling historical and Real-time Quotes data of China stocks
upload_time2025-02-17 06:45:09
maintainerNone
docs_urlhttps://pythonhosted.org/tushare/
authorJimmy Liu
requires_pythonNone
licenseBSD
keywords global financial data
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
TuShare
===============

.. image:: https://api.travis-ci.org/waditu/tushare.png?branch=master
    :target: https://travis-ci.org/waditu/tushare

.. image:: https://badge.fury.io/py/tushare.png
    :target: http://badge.fury.io/py/tushare

* easy to use as most of the data returned are pandas DataFrame objects
* can be easily saved as csv, excel or json files
* can be inserted into MySQL or Mongodb

Target Users
--------------

* financial market analyst of China
* learners of financial data analysis with pandas/NumPy
* people who are interested in China financial data

Installation
--------------

    pip install tushare
    
Upgrade
---------------

    pip install tushare --upgrade
    
Quick Start
--------------

::

    import tushare as ts
    
    ts.get_hist_data('600848')
    
return::

                open    high   close     low     volume    p_change  ma5     
    date
    2012-01-11   6.880   7.380   7.060   6.880   14129.96     2.62   7.060
    2012-01-12   7.050   7.100   6.980   6.900    7895.19    -1.13   7.020
    2012-01-13   6.950   7.000   6.700   6.690    6611.87    -4.01   6.913
    2012-01-16   6.680   6.750   6.510   6.480    2941.63    -2.84   6.813
    2012-01-17   6.660   6.880   6.860   6.460    8642.57     5.38   6.822
    2012-01-18   7.000   7.300   6.890   6.880   13075.40     0.44   6.788
    2012-01-19   6.690   6.950   6.890   6.680    6117.32     0.00   6.770
    2012-01-20   6.870   7.080   7.010   6.870    6813.09     1.74   6.832
    
    
Log
--------------
1.4.19
-------
- 修复 realtime_list 返回数据不全的问题
-------
1.4.17
-------
- 修复 920 开头更改是北交所
-------
1.4.14
-------
- 修复 realtime_list (爬虫版)
- 修复dc CLOSE和PRE_CLOSE收盘和昨收 字段命名问题
-------
1.4.6
-------
- 修复 realtime_quote 实时盘口TICK快照(爬虫版)
- 修复dc OPEN和LOW 值相反问题
1.4.0
-------
- 增加 银河证券实时行情数据入口
1.3.9
-------
- realtime_quote 实时盘口TICK快照(爬虫版)
- 修复dc 指数和股票数据抓取问题
- 将数字类型统一转换成 float类型
1.2.73
-------
- 支持华泰实时数据15SECOND
    

            

Raw data

            {
    "_id": null,
    "home_page": "https://tushare.pro",
    "name": "tushare",
    "maintainer": null,
    "docs_url": "https://pythonhosted.org/tushare/",
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "Global Financial Data",
    "author": "Jimmy Liu",
    "author_email": "waditu@163.com",
    "download_url": "https://files.pythonhosted.org/packages/86/f5/081689321bf62310644eff61a90e901a8a6824d471199d71df929b80b33c/tushare-1.4.19.tar.gz",
    "platform": null,
    "description": "\r\nTuShare\r\n===============\r\n\r\n.. image:: https://api.travis-ci.org/waditu/tushare.png?branch=master\r\n    :target: https://travis-ci.org/waditu/tushare\r\n\r\n.. image:: https://badge.fury.io/py/tushare.png\r\n    :target: http://badge.fury.io/py/tushare\r\n\r\n* easy to use as most of the data returned are pandas DataFrame objects\r\n* can be easily saved as csv, excel or json files\r\n* can be inserted into MySQL or Mongodb\r\n\r\nTarget Users\r\n--------------\r\n\r\n* financial market analyst of China\r\n* learners of financial data analysis with pandas/NumPy\r\n* people who are interested in China financial data\r\n\r\nInstallation\r\n--------------\r\n\r\n    pip install tushare\r\n    \r\nUpgrade\r\n---------------\r\n\r\n    pip install tushare --upgrade\r\n    \r\nQuick Start\r\n--------------\r\n\r\n::\r\n\r\n    import tushare as ts\r\n    \r\n    ts.get_hist_data('600848')\r\n    \r\nreturn::\r\n\r\n                open    high   close     low     volume    p_change  ma5     \r\n    date\r\n    2012-01-11   6.880   7.380   7.060   6.880   14129.96     2.62   7.060\r\n    2012-01-12   7.050   7.100   6.980   6.900    7895.19    -1.13   7.020\r\n    2012-01-13   6.950   7.000   6.700   6.690    6611.87    -4.01   6.913\r\n    2012-01-16   6.680   6.750   6.510   6.480    2941.63    -2.84   6.813\r\n    2012-01-17   6.660   6.880   6.860   6.460    8642.57     5.38   6.822\r\n    2012-01-18   7.000   7.300   6.890   6.880   13075.40     0.44   6.788\r\n    2012-01-19   6.690   6.950   6.890   6.680    6117.32     0.00   6.770\r\n    2012-01-20   6.870   7.080   7.010   6.870    6813.09     1.74   6.832\r\n    \r\n    \r\nLog\r\n--------------\r\n1.4.19\r\n-------\r\n- \u4fee\u590d realtime_list \u8fd4\u56de\u6570\u636e\u4e0d\u5168\u7684\u95ee\u9898\r\n-------\r\n1.4.17\r\n-------\r\n- \u4fee\u590d 920 \u5f00\u5934\u66f4\u6539\u662f\u5317\u4ea4\u6240\r\n-------\r\n1.4.14\r\n-------\r\n- \u4fee\u590d realtime_list (\u722c\u866b\u7248)\r\n- \u4fee\u590ddc CLOSE\u548cPRE_CLOSE\u6536\u76d8\u548c\u6628\u6536 \u5b57\u6bb5\u547d\u540d\u95ee\u9898\r\n-------\r\n1.4.6\r\n-------\r\n- \u4fee\u590d realtime_quote \u5b9e\u65f6\u76d8\u53e3TICK\u5feb\u7167(\u722c\u866b\u7248)\r\n- \u4fee\u590ddc OPEN\u548cLOW \u503c\u76f8\u53cd\u95ee\u9898\r\n1.4.0\r\n-------\r\n- \u589e\u52a0 \u94f6\u6cb3\u8bc1\u5238\u5b9e\u65f6\u884c\u60c5\u6570\u636e\u5165\u53e3\r\n1.3.9\r\n-------\r\n- realtime_quote \u5b9e\u65f6\u76d8\u53e3TICK\u5feb\u7167(\u722c\u866b\u7248)\r\n- \u4fee\u590ddc \u6307\u6570\u548c\u80a1\u7968\u6570\u636e\u6293\u53d6\u95ee\u9898\r\n- \u5c06\u6570\u5b57\u7c7b\u578b\u7edf\u4e00\u8f6c\u6362\u6210 float\u7c7b\u578b\r\n1.2.73\r\n-------\r\n- \u652f\u6301\u534e\u6cf0\u5b9e\u65f6\u6570\u636e15SECOND\r\n    \r\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "A utility for crawling historical and Real-time Quotes data of China stocks",
    "version": "1.4.19",
    "project_urls": {
        "Homepage": "https://tushare.pro"
    },
    "split_keywords": [
        "global",
        "financial",
        "data"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2bb18aa06e934b778920624047770cc8fd5518a1e9d3066043150a691f71edc1",
                "md5": "2e1507f8a204b5f393b84bc373056748",
                "sha256": "988c02602eefcdf61597c28ca4030cc04e883b5b2678f327d4f3970a6502eec3"
            },
            "downloads": -1,
            "filename": "tushare-1.4.19-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2e1507f8a204b5f393b84bc373056748",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 142675,
            "upload_time": "2025-02-17T06:45:06",
            "upload_time_iso_8601": "2025-02-17T06:45:06.603728Z",
            "url": "https://files.pythonhosted.org/packages/2b/b1/8aa06e934b778920624047770cc8fd5518a1e9d3066043150a691f71edc1/tushare-1.4.19-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "86f5081689321bf62310644eff61a90e901a8a6824d471199d71df929b80b33c",
                "md5": "d85570fd3d52fa3ebc416371ca45cc21",
                "sha256": "d7900f99d8700b4fe6f4285b8a114140a318df6d1214463e29d9fa9ecf119178"
            },
            "downloads": -1,
            "filename": "tushare-1.4.19.tar.gz",
            "has_sig": false,
            "md5_digest": "d85570fd3d52fa3ebc416371ca45cc21",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 127558,
            "upload_time": "2025-02-17T06:45:09",
            "upload_time_iso_8601": "2025-02-17T06:45:09.755675Z",
            "url": "https://files.pythonhosted.org/packages/86/f5/081689321bf62310644eff61a90e901a8a6824d471199d71df929b80b33c/tushare-1.4.19.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-17 06:45:09",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "tushare"
}
        
Elapsed time: 0.42757s