# 该Python代码用于模块定义,供其他Python代码或VBA调用。
from PythonApi import *
import time
import os
import csv
from numpy import *
from talib import *
from pandas import *
#调试打印输出
# print("...")
sz_index = 'QZ000001'
close = history_bars_date('sz002826','20200201','20200202','1d','close')
print(close)
close1 = history_bars('sz002826',1,'1d','close')
print(close1)
bar_close=history_bars_date('SQRB00','20180901','20180910','1d','close')
print(bar_close)
以下是输出结果:
> 开始编译 <jzt_HGJYF1> ......
>
23:01:23 > []
23:01:23 > [8.84000015]
23:01:23 > []
> 编译成功!
为什么使用history_bars_date函数是空列表呢?错在哪呢~求大哥帮助!
本地这么测试正常

此主题相关图片如下:~2{8_1c3lxboz4tl)z%_1f.png