semvec/pypi-packages huggingface dataset:
rainiee-algorithm 1.0.1
rainiee algorithm data api
License: MIT
Requires Python: >=3

rainiee_algorithm
===============
* easy to use as most of the data returned are json 

Installation
--------------

    pip install rainiee_algorithm==1.0.1
    from rainiee_algorithm.rainiee_algorithm_client import RainieeAlgorithmClient
    client = RainieeAlgorithmClient(username,password)

Upgrade
---------------

    pip install rainiee_algorithm==1.0.1 --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,2350,2360)
        2: algorithm_solve_maximize_sharpe
              symbol_list = ['300370.sz','300102.sz','300345.sz']
              rainiee_client.algorithm_solve_maximize_sharpe(symbol_list,2350,2360)
        3: algorithm_solve_vanilla_mvo_realtime
              symbol_list = ['300370.sz','300102.sz','300345.sz']
              rainiee_client.algorithm_solve_vanilla_mvo_realtime(symbol_list,2350,2360)
        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,2581,2581)

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