Name | tushare JSON |
Version |
1.4.13
JSON |
| download |
home_page | https://tushare.pro |
Summary | A utility for crawling historical and Real-time Quotes data of China stocks |
upload_time | 2024-09-04 10:31:10 |
maintainer | None |
docs_url | https://pythonhosted.org/tushare/ |
author | Jimmy Liu |
requires_python | None |
license | BSD |
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/c8/66/9fa440353c159117fc487ca2de4e9ee314d6d36481fa9beb721048f1c652/tushare-1.4.13.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.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.13",
"project_urls": {
"Homepage": "https://tushare.pro"
},
"split_keywords": [
"global",
"financial",
"data"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "583ffb92002fbe66103177878856322d24b7c226d8bed8996254df0a04e2682e",
"md5": "426b5e20b3985d495677cef5aed5b57a",
"sha256": "901dbb38e60a91272af808a318fc402eb06c9db8f59acdd4d944faa1d7dbcca2"
},
"downloads": -1,
"filename": "tushare-1.4.13-py3-none-any.whl",
"has_sig": false,
"md5_digest": "426b5e20b3985d495677cef5aed5b57a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 142123,
"upload_time": "2024-09-04T10:31:07",
"upload_time_iso_8601": "2024-09-04T10:31:07.985273Z",
"url": "https://files.pythonhosted.org/packages/58/3f/fb92002fbe66103177878856322d24b7c226d8bed8996254df0a04e2682e/tushare-1.4.13-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c8669fa440353c159117fc487ca2de4e9ee314d6d36481fa9beb721048f1c652",
"md5": "8a40165420e21acc326611c48c8cc310",
"sha256": "2ccc1178dc20df61e8e993ff61b61806059d913c7b2e664fb6ce6986b1840c6c"
},
"downloads": -1,
"filename": "tushare-1.4.13.tar.gz",
"has_sig": false,
"md5_digest": "8a40165420e21acc326611c48c8cc310",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 126856,
"upload_time": "2024-09-04T10:31:10",
"upload_time_iso_8601": "2024-09-04T10:31:10.023316Z",
"url": "https://files.pythonhosted.org/packages/c8/66/9fa440353c159117fc487ca2de4e9ee314d6d36481fa9beb721048f1c652/tushare-1.4.13.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-04 10:31:10",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "tushare"
}