pub struct InstrumentCommission {
pub commission: Option<f32>,
pub units_traded: Option<f32>,
pub minimum_commission: Option<f32>,
}
Fields§
§commission: Option<f32>
The commission amount (in the Account’s home currency) charged per unitsTraded of the instrument format: A decimal number encoded as a string. The amount of precision provided depends on what the number represents.
units_traded: Option<f32>
The number of units traded that the commission amount is based on. format: A decimal number encoded as a string. The amount of precision provided depends on what the number represents.
minimum_commission: Option<f32>
The minimum commission amount (in the Account’s home currency) that is charged when an Order is filled for this instrument. format: A decimal number encoded as a string. The amount of precision provided depends on what the number represents.
Implementations§
source§impl InstrumentCommission
impl InstrumentCommission
pub fn new() -> InstrumentCommission
sourcepub fn with_commission(self, x: f32) -> Self
pub fn with_commission(self, x: f32) -> Self
The commission amount (in the Account’s home currency) charged per unitsTraded of the instrument format: A decimal number encoded as a string. The amount of precision provided depends on what the number represents.
- param f32
- return InstrumentCommission
sourcepub fn with_units_traded(self, x: f32) -> Self
pub fn with_units_traded(self, x: f32) -> Self
The number of units traded that the commission amount is based on. format: A decimal number encoded as a string. The amount of precision provided depends on what the number represents.
- param f32
- return InstrumentCommission
sourcepub fn with_minimum_commission(self, x: f32) -> Self
pub fn with_minimum_commission(self, x: f32) -> Self
The minimum commission amount (in the Account’s home currency) that is charged when an Order is filled for this instrument. format: A decimal number encoded as a string. The amount of precision provided depends on what the number represents.
- param f32
- return InstrumentCommission