执行代码无法获取沪深300股指期权的合约,报错如下:

2020-01-02 15:00:00.000 - WARN - 没有获得任何数据, Function[GetAtmOptionContract], Code[000300.SHSE], Date[20200102], Price[4152], CPType[0]

主要代码如下:
g.code = "000300.SHSE"
SubscribeQuote(g.code)
SubscribeBar(g.code, BarType.Day)

dyndata = GetQuote(code) now1 = round(dyndata.now,0) atmopc = GetAtmOptionContract(code,GetCurrentTime(),now1,0)#call atmopp = GetAtmOptionContract(code,GetCurrentTime(),now1,1)#put