12345678910111213141516171819202122232425262728 |
- login(`admin, `123456)
- loadPlugin("ODBC")
- clearCachedModules()
- use fundit::fundCalculator
- use fundit::dataPuller
- use fundit::returnCalculator
- use fundit::indicatorCalculator
- end_day = 2024.06.28
- //end_day = today()
- /* TEST CASE 1 */
- fund_ids = "'HF000004KN','HF000103EU','HF00018WXG'";
- /* TEST CASE 2
- tb_updated_funds = get_fund_list_by_nav_updatetime(null, 2024.07.19T10:00:00);
- // take 1000 funds for testing
- fund_ids = tb_updated_funds.fund_id[0:1000].concat("','")$STRING;
- fund_ids = "'" + fund_ids + "'";
- */
- tb_indicators = cal_fund_indicators('HF', fund_ids, end_day, true);
- SELECT * FROM tb_indicators[0];
|