Spaces:
Runtime error
Runtime error
{ | |
"Global prompt:": "请利用给定的函数一步一步地完成Instruction,每一步你只能从以下函数库中选择一个或者多个无依赖关系的函数,并且为函数生成对应的参数,参数格式要严格按照函数说明,并行地生成对应多个result_i, 后面步骤的函数使用之前的result作为参数输入,以###结尾", | |
"Function Library:": "", | |
"Instruction: 获取贵州茅台的2018年1月23日到2019年3月13日的每日收盘价的时序数据": "###Function Call: step1={\n \"arg1\": [\"贵州茅台\",\"20180123\",\"20190313\",\"daily\"],\n \"function1\": \"get_stock_prices_data\",\n \"output1\": \"result1\",\n \"description1\": \"贵州茅台每日股价(开盘,收盘,最高,最低等相关价格)的时序数据\"\n},step2={\n \"arg1\": [\"result1\",\"close\"],\n \"function1\": \"calculate_stock_index\",\n \"output1\": \"result2\",\n \"description1\": \"贵州茅台的收盘价时序数据\"\n}###", | |
"Instruction: 依次获取五粮液和泸州老窖从2019年年初到2022年年中的累积收益率时序数据": "###Function Call: step1={\n \"arg1\": [\"五粮液\",\"20190101\",\"20220630\",\"daily\"],\n \"function1\": \"get_stock_prices_data\",\n \"output1\": \"result1\",\n \"description1\": \"五粮液相关价格的时序数据\",\n \"arg2\": [\"泸州老窖\",\"20190101\",\"20220630\",\"daily\"],\n \"function2\": \"get_stock_prices_data\",\n \"output2\": \"result2\",\n \"description2\": \"泸州老窖每日相关价格的时序数据\"\n},step2={\n \"arg1\": [\"result1\",\"Cumulative_Earnings_Rate\"],\n \"function1\": \"calculate_stock_index\",\n \"output1\": \"result3\",\n \"description1\": \"五粮液的累计收益率时序数据\",\n \"arg2\": [\"result2\",\"Cumulative_Earnings_Rate\"],\n \"function2\": \"calculate_stock_index\",\n \"output2\": \"result4\",\n \"description2\": \"泸州老窖的累计收益率的时序数据\"\n}\n###", | |
"Instruction: 依次获取2022年05月10日到2023年5月10的成都银行K线和macd指标时序数据": "###Function Call: \nstep1={\n \"arg1\": [\"成都银行\",\"20220510\",\"20230510\",\"daily\"],\n \"function1\": \"get_stock_prices_data\",\n \"output1\": \"result1\",\n \"description1\": \"成都银行每日股价(开盘,收盘,最高,最低等相关价格)时序数据\",\n \"arg2\": [\"成都银行\",\"20220510\",\"20230510\"],\n \"function2\": \"get_stock_technical_data\",\n \"output2\": \"result2\",\n \"description2\": \"成都银行技术指标的时序数据\"\n},step2={\n \"arg1\": [\"result1\",\"candle_K\"],\n \"function1\": \"calculate_stock_index\",\n \"output1\": \"result3\",\n \"description1\": \"成都银行k线图相关的时序数据\",\n \"arg2\": [\"result2\",\"macd\"],\n \"function2\": \"calculate_stock_index\",\n \"output2\": \"result4\",\n \"description2\": \"成都银行macd指标的时序数据\"\n},step3={\n \"arg1\": [\"result3\",\"result4\"],\n \"function1\": \"merge_indicator_for_same_stock\",\n \"output1\": \"result5\",\n \"description1\": \"成都银行k线指标和macd指标合并后的时序数据\"\n}###", | |
"Instruction: 循环获取上证50指数的每只成分股里从2023年1月1日到2023年5月10日的收益率截面数据": "###Function Call: step1={\n \"arg1\": [\"上证50\",\"20230101\",\"20230510\"],\n \"function1\": \"get_index_constituent\",\n \"output1\": \"result1\",\n \"description1\": \"上证50的所有成分股列表\"\n},step2={\n \"arg1\": [\"result1\",\"stock_name\",-1],\n \"function1\": \"select_value_by_column\",\n \"output1\": \"result2\",\n \"description1\": \"所有上证50成分股的股票名称\"\n},step3={\n \"arg1\": [\"result2\",\"calculate_earning_between_two_time\",\"20230101\",\"20230510\"],\n \"function1\": \"loop_rank\",\n \"output1\": \"result3\",\n \"description1\": \"每只成分股的收益率\"\n}###请注意get_index_constituent是查询指数所有的成分股信息,get_index_data是获取指数本身的价格信息", | |
"Instruction: 循环获取申万二级行业城商行Ⅱ的每只成分股里从2023年1月1日到2023年5月10日的收益率截面数据": "###Function Call: step1={\n \"arg1\": [\"申万二级行业城商行Ⅱ\",\"20230101\",\"20230510\"],\n \"function1\": \"get_index_constituent\",\n \"output1\": \"result1\",\n \"description1\": \"城商行的所有成分股列表\"\n},step2={\n \"arg1\": [\"result1\",\"stock_name\",-1],\n \"function1\": \"select_value_by_column\",\n \"output1\": \"result2\",\n \"description1\": \"所有成分股的股票名称\"\n},step3={\n \"arg1\": [\"result2\",\"calculate_earning_between_two_time\",\"20230101\",\"20230510\"],\n \"function1\": \"loop_rank\",\n \"output1\": \"result3\",\n \"description1\": \"每只成分股的收益率\"\n}###", | |
"Instruction: 依次获取沪深300,创业板指这两个指数在20230101到20230510日的每日累计收益率时序数据": "###Function Call: step1={\n \"arg1\": [\"沪深300\",\"20230101\",\"20230510\",\"daily\"],\n \"function1\": \"get_index_data\",\n \"output1\": \"result1\",\n \"description1\": \"沪深300指数的日频指数价格时序数据\",\n \"arg2\": [\"创业板指\",\"20230101\",\"20230510\",\"daily\"],\n \"function2\": \"get_index_data\",\n \"output2\": \"result2\",\n \"description2\": \"创业板指数的指数价格时序数据\"\n},step2={\n \"arg1\": [\"result1\",\"Cumulative_Earnings_Rate\"],\n \"function1\": \"calculate_stock_index\",\n \"output1\": \"result4\",\n \"description1\": \"沪深300的累计收益率时序数据\",\n \"arg2\": [\"result2\",\"Cumulative_Earnings_Rate\"],\n \"function2\": \"calculate_stock_index\",\n \"output2\": \"result5\",\n \"description2\": \"创业板指的累计收益率时序数据\"\n}###", | |
"Instruction: 获取中证500在20230101到20230510日的指数收盘价格时序数据": "###Function Call: step1={\n \"arg1\": [\"中证500\",\"20230101\",\"20230510\",\"daily\"],\n \"function1\": \"get_index_data\",\n \"output1\": \"result1\",\n \"description1\": \"中证500指数的指数价格时序数据\"\n},step2={\n \"arg1\": [\"result1\",\"close\"],\n \"function1\": \"calculate_stock_index\",\n \"output1\": \"result3\",\n \"description1\": \"中证500的收盘价时序数据\"\n}###这个指令不需要调用loop_rank和merge_indicator_for_same_stock这些不相干的函数,指数价格一般都是收盘价", | |
"Instruction: 依次获取2018年01月01日到2023年5月10日宁德时代和天齐锂业的技术指标市盈率(pe-ttm)时序数据": "###Function Call: step1={\n \"arg1\": [\"宁德时代\",\"20180101\",\"20230510\"],\n \"function1\": \"get_stock_technical_data\",\n \"output1\": \"result1\",\n \"description1\": \"宁德时代的技术指标时序数据\",\n \"arg2\": [\"天齐锂业\",\"20180101\",\"20230510\"],\n \"function2\": \"get_stock_technical_data\",\n \"output2\": \"result2\",\n \"description2\": \"天齐锂业的技术指标时序数据\"\n},step2={\n \"arg1\": [\"result1\",\"pe_ttm\"],\n \"function1\": \"calculate_stock_index\",\n \"output1\": \"result3\",\n \"description1\": \"宁德时代的pe估值时序数据\",\n \"arg2\": [\"result2\",\"pe_ttm\"],\n \"function2\": \"calculate_stock_index\",\n \"output2\": \"result4\",\n \"description2\": \"天齐锂业的pe估值时序数据\"\n}###", | |
"Instruction: 依次获取中国平安和贵州茅台从2011年5月23日到2021年5月23日期间的净资产回报率(roe)的时序数据": "###Function Call: step1={\n \"arg1\": [\"中国平安\",\"20110523\",\"20210523\",\"roe\"],\n \"function1\": \"get_Financial_data_from_time_range\",\n \"output1\": \"result1\",\n \"description1\": \"中国平安的十年roe时序数据\",\n \"arg2\": [\"贵州茅台\",\"20110523\",\"20210523\",\"roe\"],\n \"function2\": \"get_Financial_data_from_time_range\",\n \"output2\": \"result2\",\n \"description2\": \"贵州茅台这十年净资产收益率的时序数据\"\n}###", | |
"Instruction: 循环获取创业板指所有成分股的20220630日半年报的归母净利润增速同比(netprofit_yoy)截面数据": "###Function Call: step1={\n \"arg1\": [\"创业板指\", \"20220601\", \"20220630\"],\n \"function1\": \"get_index_constituent\",\n \"output1\": \"result1\",\n \"description1\": \"当月的创业板指的所有成分股信息\"\n},step2={\n \"arg1\": [\"result1\", \"stock_name\", -1],\n \"function1\": \"select_value_by_column\",\n \"output1\": \"result2\",\n \"description1\": \"创业板指成分股的股票名称\"\n},step3={\n \"arg1\": [\"result2\",\"get_Financial_data_from_time_range\", \"20220630\", \"20220630\", \"netprofit_yoy\"],\n \"function1\": \"loop_rank\",\n \"output1\": \"result3\",\n \"description1\": \"创业板指的每只成分股的半年报20220630归母净利润同比增速的截面数据\"\n}" | |
} | |