pub struct OptionBarsParams {
pub symbols: Option<String>,
pub timeframe: Option<String>,
pub start: Option<String>,
pub end: Option<String>,
pub limit: Option<u32>,
pub page_token: Option<String>,
}Expand description
Parameters for querying option bars.
Fields§
§symbols: Option<String>Option symbols to query.
timeframe: Option<String>Timeframe for bars (e.g., “1Min”, “1Hour”, “1Day”).
start: Option<String>Start time (RFC3339 format).
end: Option<String>End time (RFC3339 format).
limit: Option<u32>Maximum number of results.
page_token: Option<String>Pagination token.
Implementations§
Source§impl OptionBarsParams
impl OptionBarsParams
Sourcepub fn new(symbols: &str) -> OptionBarsParams
pub fn new(symbols: &str) -> OptionBarsParams
Create new parameters with symbols.
Sourcepub fn timeframe(self, timeframe: &str) -> OptionBarsParams
pub fn timeframe(self, timeframe: &str) -> OptionBarsParams
Set timeframe.
Sourcepub fn time_range(self, start: &str, end: &str) -> OptionBarsParams
pub fn time_range(self, start: &str, end: &str) -> OptionBarsParams
Set time range.
Sourcepub fn limit(self, limit: u32) -> OptionBarsParams
pub fn limit(self, limit: u32) -> OptionBarsParams
Set maximum number of results.
Trait Implementations§
Source§impl Clone for OptionBarsParams
impl Clone for OptionBarsParams
Source§fn clone(&self) -> OptionBarsParams
fn clone(&self) -> OptionBarsParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OptionBarsParams
impl Debug for OptionBarsParams
Source§impl Default for OptionBarsParams
impl Default for OptionBarsParams
Source§fn default() -> OptionBarsParams
fn default() -> OptionBarsParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OptionBarsParams
impl<'de> Deserialize<'de> for OptionBarsParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OptionBarsParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OptionBarsParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for OptionBarsParams
impl Serialize for OptionBarsParams
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for OptionBarsParams
impl RefUnwindSafe for OptionBarsParams
impl Send for OptionBarsParams
impl Sync for OptionBarsParams
impl Unpin for OptionBarsParams
impl UnwindSafe for OptionBarsParams
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