Skip to main content

rainiee_decision_engine

  • easy to use as most of the data returned are json

Installation

pip install rainiee_rest_client==1.0.3
from rainiee_rest_client.rest_client import RestClient
rainiee_client = RestClient(username,password).choice_rainiee_compute().login()

Upgrade

pip install rainiee_rest_client==1.0.3 --upgrade

Quick Start

algorithm

    1: algorithm_solve_vanilla_mvo
          symbol_list = ['300370.sz','300102.sz','300345.sz']
          rainiee_client.algorithm_solve_vanilla_mvo(symbol_list = symbol_list,start_index=7500,end_index = 7530)
    2: algorithm_solve_maximize_sharpe
          symbol_list = ['300370.sz','300102.sz','300345.sz']
          rainiee_client.algorithm_solve_maximize_sharpe(symbol_list = symbol_list,start_index=7500,end_index = 7530)
    3: algorithm_solve_vanilla_mvo_realtime
          symbol_list = ['300370.sz','300102.sz','300345.sz']
          rainiee_client.algorithm_solve_vanilla_mvo_realtime(symbol_list = symbol_list,start_index=7500,end_index = 7530)
    4: monitoring_baseline
          portf = [{'percentage': 1.0, 'symbol': '300547.sz'}, {'percentage': 0.5, 'symbol': '300647.sz'}]
          hold_index = 2530
          hold_period = 5
          rainiee_client.monitoring_baseline(portf,hold_index,hold_period)
    5: cn_stockstats_returns_matrix
          symbol_list =['300370.sz','300102.sz','300345.sz','300341.sz','300806.sz','300249.sz','300727.sz','300373.sz','300808.sz',
          '300474.sz','300805.sz','300803.sz']
          rainiee_client.cn_stockstats_returns_matrix(symbol_list = symbol_list,start_index=7500,end_index = 7530)

    6: trade_execute_order
          rainiee_client.trade_execute_order('300647.sz',2500,'buy',15)

Release files for rainiee-rest-client 1.0.3

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

Source distribution (sdist)

Source distribution for rainiee-rest-client 1.0.3
File Size Uploaded
rainiee_rest_client-1.0.3.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rainiee-rest-client 1.0.3
File Interpreter ABI Platform
rainiee_rest_client-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 7.0 kB

Release files / rainiee_rest_client-1.0.3.tar.gz

Download URL rainiee_rest_client-1.0.3.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5757664a88ce653b6080f01d3f6d6c7a3d0bf02b2481845d62543aa77fc77d60
BLAKE2b-256 checksum
How to use checksums
67a308fe7db2cfa90efc5b442d8eeab02dbd0fe9bebf608e9a857ab8093bd785
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.6

Release files / rainiee_rest_client-1.0.3-py3-none-any.whl

Download URL rainiee_rest_client-1.0.3-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
340eb09d3fff964a4c2cc2445596fad4044bf73af8a05458663b348f6d3402d2
BLAKE2b-256 checksum
How to use checksums
7c33477ce7b3c847741057eb7bb990717c5d1ba8d4ab99ac2764ca2480178e14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.6

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.0

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