tushare


Nametushare JSON
Version 1.4.6 PyPI version JSON
download
home_pagehttps://tushare.pro
SummaryA utility for crawling historical and Real-time Quotes data of China stocks
upload_time2024-04-15 07:18:23
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.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/a3/89/c329f61b4cf0064af8080b9e3cfc7fbcd0980da47f552dbb1a3ccde7f5e8/tushare-1.4.6.tar.gz",
    "platform": null,
    "description": "\nTuShare\n===============\n\n.. image:: https://api.travis-ci.org/waditu/tushare.png?branch=master\n    :target: https://travis-ci.org/waditu/tushare\n\n.. image:: https://badge.fury.io/py/tushare.png\n    :target: http://badge.fury.io/py/tushare\n\n* easy to use as most of the data returned are pandas DataFrame objects\n* can be easily saved as csv, excel or json files\n* can be inserted into MySQL or Mongodb\n\nTarget Users\n--------------\n\n* financial market analyst of China\n* learners of financial data analysis with pandas/NumPy\n* people who are interested in China financial data\n\nInstallation\n--------------\n\n    pip install tushare\n    \nUpgrade\n---------------\n\n    pip install tushare --upgrade\n    \nQuick Start\n--------------\n\n::\n\n    import tushare as ts\n    \n    ts.get_hist_data('600848')\n    \nreturn::\n\n                open    high   close     low     volume    p_change  ma5     \n    date\n    2012-01-11   6.880   7.380   7.060   6.880   14129.96     2.62   7.060\n    2012-01-12   7.050   7.100   6.980   6.900    7895.19    -1.13   7.020\n    2012-01-13   6.950   7.000   6.700   6.690    6611.87    -4.01   6.913\n    2012-01-16   6.680   6.750   6.510   6.480    2941.63    -2.84   6.813\n    2012-01-17   6.660   6.880   6.860   6.460    8642.57     5.38   6.822\n    2012-01-18   7.000   7.300   6.890   6.880   13075.40     0.44   6.788\n    2012-01-19   6.690   6.950   6.890   6.680    6117.32     0.00   6.770\n    2012-01-20   6.870   7.080   7.010   6.870    6813.09     1.74   6.832\n    \n    \nLog\n--------------\n1.4.6\n-------\n- \u4fee\u590d realtime_quote \u5b9e\u65f6\u76d8\u53e3TICK\u5feb\u7167(\u722c\u866b\u7248)\n- \u4fee\u590ddc OPEN\u548cLOW \u503c\u76f8\u53cd\u95ee\u9898\n1.4.0\n-------\n- \u589e\u52a0 \u94f6\u6cb3\u8bc1\u5238\u5b9e\u65f6\u884c\u60c5\u6570\u636e\u5165\u53e3\n1.3.9\n-------\n- realtime_quote \u5b9e\u65f6\u76d8\u53e3TICK\u5feb\u7167(\u722c\u866b\u7248)\n- \u4fee\u590ddc \u6307\u6570\u548c\u80a1\u7968\u6570\u636e\u6293\u53d6\u95ee\u9898\n- \u5c06\u6570\u5b57\u7c7b\u578b\u7edf\u4e00\u8f6c\u6362\u6210 float\u7c7b\u578b\n1.2.73\n-------\n- \u652f\u6301\u534e\u6cf0\u5b9e\u65f6\u6570\u636e15SECOND\n    \n\n\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "A utility for crawling historical and Real-time Quotes data of China stocks",
    "version": "1.4.6",
    "project_urls": {
        "Homepage": "https://tushare.pro"
    },
    "split_keywords": [
        "global",
        "financial",
        "data"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ef8d6a18c929b55418b33c7740e49ce4ee81ab85e915b121f81731fc96d770cf",
                "md5": "19198e9aaa306fed57fc9a1b5325660e",
                "sha256": "e0ed2b1f440a15b9e35f9ca1a144f1daf33265a4a6f959996333bb1d16612015"
            },
            "downloads": -1,
            "filename": "tushare-1.4.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "19198e9aaa306fed57fc9a1b5325660e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 255461,
            "upload_time": "2024-04-15T07:18:19",
            "upload_time_iso_8601": "2024-04-15T07:18:19.574434Z",
            "url": "https://files.pythonhosted.org/packages/ef/8d/6a18c929b55418b33c7740e49ce4ee81ab85e915b121f81731fc96d770cf/tushare-1.4.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a389c329f61b4cf0064af8080b9e3cfc7fbcd0980da47f552dbb1a3ccde7f5e8",
                "md5": "98d55cbfe7342e05dd3192a2ecde8529",
                "sha256": "55da8e45b9f152783ebad1136d072c794d7b80c330b62172cb332e7c9e53715f"
            },
            "downloads": -1,
            "filename": "tushare-1.4.6.tar.gz",
            "has_sig": false,
            "md5_digest": "98d55cbfe7342e05dd3192a2ecde8529",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 204214,
            "upload_time": "2024-04-15T07:18:23",
            "upload_time_iso_8601": "2024-04-15T07:18:23.098001Z",
            "url": "https://files.pythonhosted.org/packages/a3/89/c329f61b4cf0064af8080b9e3cfc7fbcd0980da47f552dbb1a3ccde7f5e8/tushare-1.4.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-15 07:18:23",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "tushare"
}
        
Elapsed time: 0.23324s