futures.get_dominant_price 接口特性需求
作者: quant2008创建于 2023年10月1日更新于 2023年10月1日
您好,目前主力连续合约的历史价格接口如下:futures.get_dominant_price( underlying_symbols='IC', start_date='2023-07-20', end_date='2023-07-29', adjust_type="pre", adjust_method="prev_close_ratio", fields=["close", "settlement"] ) 这里使用时间控制长度非常不方便(因为中间可能有休息等,数据长度不固定),能不能像 history_bars 一样,使用 bar_count 参数来控制提取几个历史数据点?
内容来源: ricequant/rqalpha