pub struct HomeConversions {
pub currency: Option<Currency>,
pub account_gain: Option<Decimal>,
pub account_loss: Option<Decimal>,
pub position_value: Option<Decimal>,
}Expand description
HomeConversions represents the factors to use to convert quantities of a given currency into the Account’s home currency. The conversion factor depends on the scenario the conversion is required for.
Fields§
§currency: Option<Currency>The currency to be converted into the home currency.
account_gain: Option<Decimal>The factor used to convert any gains for an Account in the specified currency into the Account’s home currency. This would include positive realized P/L and positive financing amounts. Conversion is performed by multiplying the positive P/L by the conversion factor.
account_loss: Option<Decimal>The factor used to convert any losses for an Account in the specified currency into the Account’s home currency. This would include negative realized P/L and negative financing amounts. Conversion is performed by multiplying the positive P/L by the conversion factor.
position_value: Option<Decimal>The factor used to convert a Position or Trade Value in the specified currency into the Account’s home currency. Conversion is performed by multiplying the Position or Trade Value by the conversion factor.