Skip to main content

rainiee basic data api

Project description

rainiee_data

  • rainiee_data provides users with basic financial data. Users can obtain the full range of quantitative financial data provided by rainiee_data in their own locally built environment.
  • easy to use as most of the data returned are json.

Installation

pip install rainiee_data==3.0.2

Upgrade

pip install -U rainiee_data

Login

from rainiee_data.data_pro import *
auth('ID','Password')

Quick Start

Supported API

    from rainiee_data.data_pro import *
    auth('ID','Password')

    1: cn_index_eod(index_code, start_index, end_index)
        e.g. cn_index_eod('399300.SZ', 7660, 7665)

    2: cn_index_composition(index_code)
        e.g. cn_index_composition(index_code='399300.SZ')

    3: cn_index_composition_weight(index_code)
        e.g. cn_index_composition_weight(index_code='000001.SH')

    4: cn_index_basic(market)
        e.g. cn_index_basic(market='SZSE')

    5: cn_symbol_list(category)
        e.g. cn_symbol_list(category='shzhuban')

    6: cn_stock_eod(symbol, start_index, end_index, adj='qfq', frequency='D')
        e.g. cn_stock_eod(symbol ='002679.sz',start_index=7686,end_index=7689,adj='qfq',frequency='D')

    7: cn_stock_realtime(symbol)
        e.g. cn_stock_realtime(symbol='300647.sz')

    8: get_trade_index(date)
        e.g. get_trade_index(date='20220601')

    9: get_trade_date(index)
        e.g. get_trade_date(7662)
    
    10: cn_features_eod(symbol, start_index, end_index)
        e.g. cn_features_eod(symbol='600602.ss', start_index=7600, end_index=7603)

    11: cn_targets_eod(symbol, start_index, end_index)
        e.g. cn_targets_eod(symbol='000001.sz', start_index=7600, end_index=7603)

    12: get_top_returns(index_code,index,top=10)
        e.g. get_top_returns(index_code ='399300.SZ',index=7665)

Project details


Download files

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

Source Distribution

rainiee_data-3.0.2.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

rainiee_data-3.0.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file rainiee_data-3.0.2.tar.gz.

File metadata

  • Download URL: rainiee_data-3.0.2.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for rainiee_data-3.0.2.tar.gz
Algorithm Hash digest
SHA256 2aa6a2e2472e4f41f07d142ac6b3aa58db01f2a7e2c59d1f2dd0e21e808aaac0
MD5 baeafb5d8b92a937c4a5a4ea0bb6376d
BLAKE2b-256 e059e7fa62e29849ae54cdd74da77221f4f703791ffd6f3e8623cd59b016e9e5

See more details on using hashes here.

File details

Details for the file rainiee_data-3.0.2-py3-none-any.whl.

File metadata

  • Download URL: rainiee_data-3.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for rainiee_data-3.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 27ea2818c99a6850f83efe996bbfc0551ffb8af1cd48b139ed28931ab6234272
MD5 4fea8de89717e6b729e12a05437958cf
BLAKE2b-256 ad033877c1c9b4f34eadec8d1699c6f0536049d47a6dc4b2de59405544db34fa

See more details on using hashes here.

Supported by

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