public override void FillStocks(List<string> index, Action<Securities.Security>? func = null, Resolution resolution = Resolution.Daily);
FillStocks
定义
描述
填充股票数据
参数
| 参数名 | 类型 | 描述 |
|---|---|---|
| indexes | List<String> | 指数代码集合 |
| func | Action<Securities.Security>? | 触发方法 |
| resolution | Resolution | 时间频率 |
返回值
| 返回值 | 类型 | 描述 |
|---|---|---|
| 无返回值 | ||
示例
public override void Initialize()
{
//加载【000300.XSHG】指数下的股票数据
FillStocks("000300.XSHG", (symbol) =>
{
//手续费
symbol.FeeModel = new CustomFeeService(0.0003m, 0.0003m, 0.001m, 5m);
//滑点
symbol.SlippageModel = new SlippageModel(0.02m);
});
}