RoShareClient is a python sdk with chinese stock data client
Project description
RoShare
介绍
- RoShare是一个金融数据服务,满足金融量化的各种数据需求,它与市面上的金融数据服务的最大不同是提供进阶版的金融数据,比如基于金融新闻使用NLP技术构建的每日主题热度、基于基础数据使用经典理论构建的各类因子。
技术说明
- RoShare的服务端和客户端都使用Python3.9.13开发,依赖第三方包如下:
- pandas
- numpy
- fastapi
安装
- 使用pip安装
$ pip install shihua-roshareclient
- 使用wheel安装
$ pip install roshareclient-0.1.1-py3-none-any.whl
快速指南
- 首先,需要注册roshare账号,使用tushare的个人token(roshare只是进阶数据的算法提供方,具体的数据服务还需要自行接入相应的基础数据,目前支持tushare的数据接入)
- 示例1:获取每日新闻咨询
from roshareclient.client.api import DataAPI
tmp_dict = {}
tmp_dict['src'] = 'eastmoney'
tmp_dict['start_date'] = '2023-06-09+00:00:00' ### url中+号表示空格
tmp_dict['end_date'] = '2023-06-10+00:00:00'
roshareclient = DataAPI(token_key = 7890,
token='xxxxxxxxxxxxxxxxxxx',
tushare_token='xxxxxxxxxxxxxxxxxxxxxx',
timeout=6000)
df = roshareclient.get_tushare_news(params=tmp_dict)
print(df)
更多文档
- 想要了解RoShare提供的进阶数据背后的算法设计,想要了解RoShare提供哪些进阶数据,请移步此处了解
更新记录
- 0.1.1------2023/06/10
- 推出了新闻主题热度数据
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for shihua-roshareclient-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6b8b40e57f0b1aa8895ca24eb7b6c4cf2fec3bda242585ea3e317812ee2ee92 |
|
MD5 | 22a26293b4eacff1d160ecc2b91c0467 |
|
BLAKE2b-256 | 8aa48636935702c7d84eeb60f821c6564df39d8e9fc3eb98cfbda564691377de |
Close
Hashes for shihua_roshareclient-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce3d26ceb4c361f315178c37934cb277f875d2c7903f082071565727769075a8 |
|
MD5 | 4e5dff14e27f0fc1a6e6721629af5190 |
|
BLAKE2b-256 | 660d6dc3f3bdbaa287e9511b20ff2756d9e858fbbfe11092c538d04414acb7e8 |