Struct fxoanda::MarketOrderTradeClose
source · pub struct MarketOrderTradeClose {
pub units: Option<String>,
pub trade_id: Option<String>,
pub client_trade_id: Option<String>,
}
Fields§
§units: Option<String>
Indication of how much of the Trade to close. Either “ALL”, or a DecimalNumber reflection a partial close of the Trade.
trade_id: Option<String>
The ID of the Trade requested to be closed 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.
client_trade_id: Option<String>
The client ID of the Trade requested to be closed
Implementations§
source§impl MarketOrderTradeClose
impl MarketOrderTradeClose
pub fn new() -> MarketOrderTradeClose
sourcepub fn with_units(self, x: String) -> MarketOrderTradeClose
pub fn with_units(self, x: String) -> MarketOrderTradeClose
Indication of how much of the Trade to close. Either “ALL”, or a DecimalNumber reflection a partial close of the Trade.
- param String
- return MarketOrderTradeClose
sourcepub fn with_trade_id(self, x: String) -> MarketOrderTradeClose
pub fn with_trade_id(self, x: String) -> MarketOrderTradeClose
The ID of the Trade requested to be closed 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 MarketOrderTradeClose
sourcepub fn with_client_trade_id(self, x: String) -> MarketOrderTradeClose
pub fn with_client_trade_id(self, x: String) -> MarketOrderTradeClose
The client ID of the Trade requested to be closed
- param String
- return MarketOrderTradeClose