Skip to main content

RoShare

shields_version shields_license shields_author shiedls_python

roshare_symbol

介绍

  • 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
    • 推出了新闻主题热度数据

Release files for shihua-roshareclient 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shihua-roshareclient 0.1.2
File Size Uploaded
shihua-roshareclient-0.1.2.tar.gz 8.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for shihua-roshareclient 0.1.2
File Interpreter ABI Platform
shihua_roshareclient-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 16.7 kB

Release files / shihua-roshareclient-0.1.2.tar.gz

Download URL shihua-roshareclient-0.1.2.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d2eb741d9b6e4fd5a97206c13e34f3326b5c2cf1f089ba13e3b1e90ffc466b59
BLAKE2b-256 checksum
How to use checksums
a4b101d4ed522d83249ba2709381a0aae85917126047688d9d389492f24db1c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.13

Release files / shihua_roshareclient-0.1.2-py3-none-any.whl

Download URL shihua_roshareclient-0.1.2-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e30e9d30cb0d1b94fc83d500044e194c60ee85c526ec50b5b19e8e94c42e3c1
BLAKE2b-256 checksum
How to use checksums
9dd8e3594560dc0bc44ad19d1cc20c77cd53f9022e1154b08f71cd913d76be27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page