pub struct OpenTradeFinancing {
pub trade_id: Option<TradeID>,
pub financing: Option<Decimal>,
pub base_financing: Option<Decimal>,
pub quote_financing: Option<Decimal>,
pub financing_rate: Option<Decimal>,
}Expand description
OpenTradeFinancing is used to pay/collect daily financing charge for an open Trade within an Account
Fields§
§trade_id: Option<TradeID>The ID of the Trade that financing is being paid/collected for.
financing: Option<Decimal>The amount of financing paid/collected for the Trade.
base_financing: Option<Decimal>The amount of financing paid/collected in the Instrument’s base currency for the Trade.
quote_financing: Option<Decimal>The amount of financing paid/collected in the Instrument’s quote currency for the Trade.
financing_rate: Option<Decimal>The financing rate in effect for the instrument used to calculate the the amount of financing paid/collected for the Trade. This field will only be set if the AccountFinancingMode at the time of the daily financing is DAILY_INSTRUMENT or SECOND_BY_SECOND_INSTRUMENT. The value is in decimal rather than percentage points, e.g. 5% is represented as 0.05.
Trait Implementations§
Source§impl Clone for OpenTradeFinancing
impl Clone for OpenTradeFinancing
Source§impl Debug for OpenTradeFinancing
impl Debug for OpenTradeFinancing
Source§impl<'de> Deserialize<'de> for OpenTradeFinancing
impl<'de> Deserialize<'de> for OpenTradeFinancing
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OpenTradeFinancing
impl PartialEq for OpenTradeFinancing
Source§impl Serialize for OpenTradeFinancing
impl Serialize for OpenTradeFinancing
impl StructuralPartialEq for OpenTradeFinancing
Auto Trait Implementations§
impl Freeze for OpenTradeFinancing
impl RefUnwindSafe for OpenTradeFinancing
impl Send for OpenTradeFinancing
impl Sync for OpenTradeFinancing
impl Unpin for OpenTradeFinancing
impl UnsafeUnpin for OpenTradeFinancing
impl UnwindSafe for OpenTradeFinancing
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more