pub struct PricingQuery {
pub instruments: Vec<InstrumentName>,
pub since: Option<Timestamp>,
pub include_units_available: Option<bool>,
pub include_home_conversions: Option<bool>,
}Expand description
Query parameters for pricing.
Fields§
§instruments: Vec<InstrumentName>List of Instruments to get pricing for. [required]
since: Option<Timestamp>Date/Time filter to apply to the response. Only prices and home conversions (if requested) with a time later than this filter (i.e. the price has changed after the since time) will be provided, and are filtered independently.
include_units_available: Option<bool>Flag that enables the inclusion of the unitsAvailable field in the returned Price objects. [default=True] Deprecated: Will be removed in a future API update.
include_home_conversions: Option<bool>Flag that enables the inclusion of the homeConversions field in the returned response. An entry will be returned for each currency in the set of all base and quote currencies present in the requested instruments list. [default=False]
Trait Implementations§
Source§impl Clone for PricingQuery
impl Clone for PricingQuery
Source§impl Debug for PricingQuery
impl Debug for PricingQuery
Source§impl<'de> Deserialize<'de> for PricingQuery
impl<'de> Deserialize<'de> for PricingQuery
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PricingQuery
impl PartialEq for PricingQuery
Source§impl Serialize for PricingQuery
impl Serialize for PricingQuery
impl StructuralPartialEq for PricingQuery
Auto Trait Implementations§
impl Freeze for PricingQuery
impl RefUnwindSafe for PricingQuery
impl Send for PricingQuery
impl Sync for PricingQuery
impl Unpin for PricingQuery
impl UnsafeUnpin for PricingQuery
impl UnwindSafe for PricingQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more