Struct fxoanda_definitions::UnitsAvailable
source · pub struct UnitsAvailable {
pub default: Option<UnitsAvailableDetails>,
pub reduce_only: Option<UnitsAvailableDetails>,
pub open_only: Option<UnitsAvailableDetails>,
pub reduce_first: Option<UnitsAvailableDetails>,
}
Fields§
§default: Option<UnitsAvailableDetails>
Representation of many units of an Instrument are available to be traded for both long and short Orders.
reduce_only: Option<UnitsAvailableDetails>
Representation of many units of an Instrument are available to be traded for both long and short Orders.
open_only: Option<UnitsAvailableDetails>
Representation of many units of an Instrument are available to be traded for both long and short Orders.
reduce_first: Option<UnitsAvailableDetails>
Representation of many units of an Instrument are available to be traded for both long and short Orders.
Implementations§
source§impl UnitsAvailable
impl UnitsAvailable
pub fn new() -> UnitsAvailable
sourcepub fn with_default(self, x: UnitsAvailableDetails) -> Self
pub fn with_default(self, x: UnitsAvailableDetails) -> Self
Representation of many units of an Instrument are available to be traded for both long and short Orders.
- param UnitsAvailableDetails
- return UnitsAvailable
sourcepub fn with_reduce_only(self, x: UnitsAvailableDetails) -> Self
pub fn with_reduce_only(self, x: UnitsAvailableDetails) -> Self
Representation of many units of an Instrument are available to be traded for both long and short Orders.
- param UnitsAvailableDetails
- return UnitsAvailable
sourcepub fn with_open_only(self, x: UnitsAvailableDetails) -> Self
pub fn with_open_only(self, x: UnitsAvailableDetails) -> Self
Representation of many units of an Instrument are available to be traded for both long and short Orders.
- param UnitsAvailableDetails
- return UnitsAvailable
sourcepub fn with_reduce_first(self, x: UnitsAvailableDetails) -> Self
pub fn with_reduce_first(self, x: UnitsAvailableDetails) -> Self
Representation of many units of an Instrument are available to be traded for both long and short Orders.
- param UnitsAvailableDetails
- return UnitsAvailable