Struct fxoanda::OpenTradeFinancing
source · pub struct OpenTradeFinancing {
pub financing: Option<f32>,
pub trade_id: Option<String>,
}
Fields§
§financing: Option<f32>
The amount of financing paid/collected for the Trade. format: A decimal number encoded as a string. The amount of precision provided depends on the Account’s home currency.
trade_id: Option<String>
The ID of the Trade that financing is being paid/collected for. format: The string representation of the OANDA-assigned TradeID. OANDA- assigned TradeIDs are positive integers, and are derived from the TransactionID of the Transaction that opened the Trade.
Implementations§
source§impl OpenTradeFinancing
impl OpenTradeFinancing
pub fn new() -> OpenTradeFinancing
sourcepub fn with_financing(self, x: f32) -> OpenTradeFinancing
pub fn with_financing(self, x: f32) -> OpenTradeFinancing
The amount of financing paid/collected for the Trade. format: A decimal number encoded as a string. The amount of precision provided depends on the Account’s home currency.
- param f32
- return OpenTradeFinancing
sourcepub fn with_trade_id(self, x: String) -> OpenTradeFinancing
pub fn with_trade_id(self, x: String) -> OpenTradeFinancing
The ID of the Trade that financing is being paid/collected for. format: The string representation of the OANDA-assigned TradeID. OANDA- assigned TradeIDs are positive integers, and are derived from the TransactionID of the Transaction that opened the Trade.
- param String
- return OpenTradeFinancing