pub struct ClientPrice {
pub type: Option<String>,
pub instrument: Option<InstrumentName>,
pub time: Option<Timestamp>,
pub status: Option<PriceStatus>,
pub tradeable: Option<bool>,
pub bids: Option<Vec<PriceBucket>>,
pub asks: Option<Vec<PriceBucket>>,
pub closeout_bid: Option<Decimal>,
pub closeout_ask: Option<Decimal>,
pub quote_home_conversion_factors: Option<QuoteHomeConversionFactors>,
pub units_available: Option<UnitsAvailable>,
}Expand description
The specification of an Account-specific Price.
Fields§
§type: Option<String>The string “PRICE”. Used to identify the a Price object when found in a stream.
instrument: Option<InstrumentName>The Price’s Instrument.
time: Option<Timestamp>The date/time when the Price was created
status: Option<PriceStatus>The status of the Price. Deprecated: Will be removed in a future API update.
tradeable: Option<bool>Flag indicating if the Price is tradeable or not
bids: Option<Vec<PriceBucket>>The list of prices and liquidity available on the Instrument’s bid side. It is possible for this list to be empty if there is no bid liquidity currently available for the Instrument in the Account.
asks: Option<Vec<PriceBucket>>The list of prices and liquidity available on the Instrument’s ask side. It is possible for this list to be empty if there is no ask liquidity currently available for the Instrument in the Account.
closeout_bid: Option<Decimal>The closeout bid Price. This Price is used when a bid is required to closeout a Position (margin closeout or manual) yet there is no bid liquidity. The closeout bid is never used to open a new position.
closeout_ask: Option<Decimal>The closeout ask Price. This Price is used when a ask is required to closeout a Position (margin closeout or manual) yet there is no ask liquidity. The closeout ask is never used to open a new position.
quote_home_conversion_factors: Option<QuoteHomeConversionFactors>The factors used to convert quantities of this price’s Instrument’s quote currency into a quantity of the Account’s home currency. When the includeHomeConversions is present in the pricing request (regardless of its value), this field will not be present. Deprecated: Will be removed in a future API update.
units_available: Option<UnitsAvailable>Representation of how many units of an Instrument are available to be traded by an Order depending on its positionFill option. Deprecated: Will be removed in a future API update.