FillStocks(数据库)
定义
public override void FillStocks(List<string> index, Action<Securities.Security>? func = null, Resolution resolution = Resolution.Daily);
参数
参数名 |
类型 |
描述 |
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);
});
}