如下图,报错如下,说是duration无效,这个是怎么回事?
2021-04-27 22:56:01,087 - client.py[line:88] - INFO: REQUEST reqHistoricalData {'reqId': 3, 'contract': 2503562790672: 0,ES,FUT,20210618,0.0,,,GLOBEX,,USD,,,False,,combo:, 'endDateTime': '20210427 22:56:01', 'durationStr': '0 D', 'barSizeSetting': '1 min', 'whatToShow': 'TRADES', 'useRTH': 0, 'formatDate': 1, 'keepUpToDate': False, 'chartOptions': []}
2021-04-27 22:56:01,087 - client.py[line:77] - INFO: SENDING reqHistoricalData b'\x00\x00\x00W20\x003\x000\x00ES\x00FUT\x0020210618\x000.0\x00\x00\x00GLOBEX\x00\x00USD\x00\x00\x000\x0020210427 22:56:01\x001 min\x000 D\x000\x00TRADES\x001\x000\x00\x00'
2021-04-27 22:56:01,088 - wrapper.py[line:48] - INFO: ANSWER error {'reqId': 3, 'errorCode': 321, 'errorString': "Error validating request:-'bS' : cause - Historical data requested duration is invalid."}
2021-04-27 22:56:01,089 - wrapper.py[line:56] - ERROR: ERROR 3 321 Error validating request:-'bS' : cause - Historical data requested duration is invalid.
另外,在用模拟账户准备运行策略的时候,没有地方指定我策略中的一根bar代表的周期啊,比如5分钟还是30分钟,这个系统是怎么弄的呢?