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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shihua-roshareclient-0.1.2.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shihua_roshareclient-0.1.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file shihua-roshareclient-0.1.2.tar.gz.

File metadata

  • Download URL: shihua-roshareclient-0.1.2.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for shihua-roshareclient-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d2eb741d9b6e4fd5a97206c13e34f3326b5c2cf1f089ba13e3b1e90ffc466b59
MD5 06beb0172c628503f7892e4c65e29165
BLAKE2b-256 a4b101d4ed522d83249ba2709381a0aae85917126047688d9d389492f24db1c7

See more details on using hashes here.

File details

Details for the file shihua_roshareclient-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for shihua_roshareclient-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5e30e9d30cb0d1b94fc83d500044e194c60ee85c526ec50b5b19e8e94c42e3c1
MD5 4998d1bad2e37b164ec8f973445bbe39
BLAKE2b-256 9dd8e3594560dc0bc44ad19d1cc20c77cd53f9022e1154b08f71cd913d76be27

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page