pub struct UnitsAvailable {
pub default: Option<UnitsAvailableDetails>,
pub reduce_first: Option<UnitsAvailableDetails>,
pub reduce_only: Option<UnitsAvailableDetails>,
pub open_only: Option<UnitsAvailableDetails>,
}Expand description
Representation of how many units of an Instrument are available to be traded by an Order depending on its positionFill option.
Fields§
§default: Option<UnitsAvailableDetails>The number of units that are available to be traded using an Order with a positionFill option of “DEFAULT”. For an Account with hedging enabled, this value will be the same as the “OPEN_ONLY” value. For an Account without hedging enabled, this value will be the same as the “REDUCE_FIRST” value.
reduce_first: Option<UnitsAvailableDetails>The number of units that may are available to be traded with an Order with a positionFill option of “REDUCE_FIRST”.
reduce_only: Option<UnitsAvailableDetails>The number of units that may are available to be traded with an Order with a positionFill option of “REDUCE_ONLY”.
open_only: Option<UnitsAvailableDetails>The number of units that may are available to be traded with an Order with a positionFill option of “OPEN_ONLY”.