Struct fxoanda::QuoteHomeConversionFactors
source · pub struct QuoteHomeConversionFactors {
pub negative_units: Option<f32>,
pub positive_units: Option<f32>,
}
Fields§
§negative_units: Option<f32>
The factor used to convert a negative amount of the Price’s Instrument’s quote currency into a negative amount of the Account’s home currency. Conversion is performed by multiplying the quote units by the conversion factor. format: A decimal number encoded as a string. The amount of precision provided depends on what the number represents.
positive_units: Option<f32>
The factor used to convert a positive amount of the Price’s Instrument’s quote currency into a positive amount of the Account’s home currency. Conversion is performed by multiplying the quote units by the conversion factor. format: A decimal number encoded as a string. The amount of precision provided depends on what the number represents.
Implementations§
source§impl QuoteHomeConversionFactors
impl QuoteHomeConversionFactors
pub fn new() -> QuoteHomeConversionFactors
sourcepub fn with_negative_units(self, x: f32) -> QuoteHomeConversionFactors
pub fn with_negative_units(self, x: f32) -> QuoteHomeConversionFactors
The factor used to convert a negative amount of the Price’s Instrument’s quote currency into a negative amount of the Account’s home currency. Conversion is performed by multiplying the quote units by the conversion factor. format: A decimal number encoded as a string. The amount of precision provided depends on what the number represents.
- param f32
- return QuoteHomeConversionFactors
sourcepub fn with_positive_units(self, x: f32) -> QuoteHomeConversionFactors
pub fn with_positive_units(self, x: f32) -> QuoteHomeConversionFactors
The factor used to convert a positive amount of the Price’s Instrument’s quote currency into a positive amount of the Account’s home currency. Conversion is performed by multiplying the quote units by the conversion factor. format: A decimal number encoded as a string. The amount of precision provided depends on what the number represents.
- param f32
- return QuoteHomeConversionFactors