CustomFeeService
定义
public CustomFeeService(decimal buy_commisstion = 0.0003m, decimal sell_commission = 0.0003m, decimal _tax = 0.001m, decimal min_commission = 5m)
参数
参数名 |
类型 |
描述 |
buy_commisstion |
decimal |
买时的佣金 |
sell_commission |
decimal |
卖时的佣金 |
_tax |
decimal |
印花税税率 |
min_commission |
decimal |
最低佣金 |
示例
public override void Initialize()
{
//加载【000300.XSHG、000852.XSHG】指数下的股票数据
FillStocks(["000300.XSHG", "000852.XSHG"], (symbol) =>
{
//设置手续费
symbol.FeeModel = new CustomFeeService(0.0003m, 0.0003m, 0.001m, 5m);
//设置滑点
symbol.SlippageModel = new SlippageModel(0.02m);
});
}