pub struct BarQueryParams {
pub symbol: String,
pub category: String,
pub time_frame: TimeFrame,
pub count: String,
}Expand description
Parameters for querying historical bar data.
Fields§
§symbol: StringSymbol to query
category: StringSecurity category (e.g., “STK” for stocks)
time_frame: TimeFrameTime frame for the bars
count: StringNumber of bars to return (max 1200)
Implementations§
Source§impl BarQueryParams
impl BarQueryParams
Sourcepub fn new(
symbol: impl Into<String>,
category: impl Into<String>,
time_frame: TimeFrame,
count: u32,
) -> Self
pub fn new( symbol: impl Into<String>, category: impl Into<String>, time_frame: TimeFrame, count: u32, ) -> Self
Create new bar query parameters.
Trait Implementations§
Source§impl Clone for BarQueryParams
impl Clone for BarQueryParams
Source§fn clone(&self) -> BarQueryParams
fn clone(&self) -> BarQueryParams
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 BarQueryParams
impl Debug for BarQueryParams
Source§impl<'de> Deserialize<'de> for BarQueryParams
impl<'de> Deserialize<'de> for BarQueryParams
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
Auto Trait Implementations§
impl Freeze for BarQueryParams
impl RefUnwindSafe for BarQueryParams
impl Send for BarQueryParams
impl Sync for BarQueryParams
impl Unpin for BarQueryParams
impl UnwindSafe for BarQueryParams
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