tushare


Nametushare JSON
Version 1.2.89 PyPI version JSON
download
home_pagehttps://tushare.pro
SummaryA utility for crawling historical and Real-time Quotes data of China stocks
upload_time2022-12-07 01:38:44
maintainer
docs_urlhttps://pythonhosted.org/tushare/
authorJimmy Liu
requires_python
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.2.73 支持华泰实时数据15SECOND
    



            

Raw data

            {
    "_id": null,
    "home_page": "https://tushare.pro",
    "name": "tushare",
    "maintainer": "",
    "docs_url": "https://pythonhosted.org/tushare/",
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "Global Financial Data",
    "author": "Jimmy Liu",
    "author_email": "waditu@163.com",
    "download_url": "https://files.pythonhosted.org/packages/59/52/c4da66d6ffa1993c88a858e2b005df83370156800f5a2f4fd2d1fdaca9c0/tushare-1.2.89.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--------------\n* 1.2.73 \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.2.89",
    "split_keywords": [
        "global",
        "financial",
        "data"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "d87a38e1f1eae203db7e2afb68def313",
                "sha256": "69805080b86a55bcb8801845a2127bc38fe1c4218b26a5028aee7395bbac96e0"
            },
            "downloads": -1,
            "filename": "tushare-1.2.89-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d87a38e1f1eae203db7e2afb68def313",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 131132,
            "upload_time": "2022-12-07T01:38:40",
            "upload_time_iso_8601": "2022-12-07T01:38:40.630751Z",
            "url": "https://files.pythonhosted.org/packages/69/b8/b24cd2274bd73333d716c7f14318cd7604c79c05b8a4e6ee037cf1cb3348/tushare-1.2.89-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "6de7a52d6304ec4fb069448730fc50a2",
                "sha256": "d4dd91736a5a39b7602354681c6ba438695d6bd4b1cfeee17e380e6b88d2a32e"
            },
            "downloads": -1,
            "filename": "tushare-1.2.89.tar.gz",
            "has_sig": false,
            "md5_digest": "6de7a52d6304ec4fb069448730fc50a2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 105146,
            "upload_time": "2022-12-07T01:38:44",
            "upload_time_iso_8601": "2022-12-07T01:38:44.935042Z",
            "url": "https://files.pythonhosted.org/packages/59/52/c4da66d6ffa1993c88a858e2b005df83370156800f5a2f4fd2d1fdaca9c0/tushare-1.2.89.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-07 01:38:44",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "tushare"
}
        
Elapsed time: 0.03810s