Skip to main content

rainiee rest api client

Project description

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)

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_rest_client-1.0.3.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_rest_client-1.0.3-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file rainiee_rest_client-1.0.3.tar.gz.

File metadata

  • Download URL: rainiee_rest_client-1.0.3.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for rainiee_rest_client-1.0.3.tar.gz
Algorithm Hash digest
SHA256 5757664a88ce653b6080f01d3f6d6c7a3d0bf02b2481845d62543aa77fc77d60
MD5 493314db824d0212cc2f97581fadfa02
BLAKE2b-256 67a308fe7db2cfa90efc5b442d8eeab02dbd0fe9bebf608e9a857ab8093bd785

See more details on using hashes here.

File details

Details for the file rainiee_rest_client-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: rainiee_rest_client-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for rainiee_rest_client-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 340eb09d3fff964a4c2cc2445596fad4044bf73af8a05458663b348f6d3402d2
MD5 fa1302d870fdf9d353a256787a8e86f4
BLAKE2b-256 7c33477ce7b3c847741057eb7bb990717c5d1ba8d4ab99ac2764ca2480178e14

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