CommissionRule
StockSharp.Algo.Commissions
The commission calculating rule.
Hereda de: NotifiableObject
Implementa: ICommissionRule, IPersistable
Constructores
CommissionRule()
Initialize CommissionRule.
Propiedades
Métodos
GetValue(decimal?, decimal?) : decimal?
Get commission value using price and volume. For percent units, uses turnover (price * volume). Absolute units return the absolute value.
- price
- Price base (order or trade).
- volume
- Volume base (order or trade).
Devuelve: Commission value or null if cannot be calculated.
Process(ExecutionMessage) : decimal?
To calculate commission.
- message
- The message containing the information about the order or own trade.
Devuelve: The commission. If the commission cannot be calculated then will be returned.
Reset()
Reset state.
UpdateTitle()
Update title.