pub struct HistoricalOptionBarsQuery<'a> { /* private fields */ }Implementations§
Source§impl<'a> HistoricalOptionBarsQuery<'a>
impl<'a> HistoricalOptionBarsQuery<'a>
Sourcepub fn new(symbols: Vec<&'a str>, timeframe: TimeFrame) -> Self
pub fn new(symbols: Vec<&'a str>, timeframe: TimeFrame) -> Self
Examples found in repository?
examples/option_bars.rs (lines 4-7)
3fn main() {
4 HistoricalOptionBarsQuery::new(
5 vec!["AAPL241220C00300000", "AAPL241220P00300000"],
6 TimeFrame::OneDay,
7 )
8 .start("2024-02-01")
9 .end("2024-02-24")
10 .limit(1)
11 .sort_desc()
12 .send()
13 .unwrap();
14}Sourcepub fn start(self, start: &'a str) -> Self
pub fn start(self, start: &'a str) -> Self
Examples found in repository?
examples/option_bars.rs (line 8)
3fn main() {
4 HistoricalOptionBarsQuery::new(
5 vec!["AAPL241220C00300000", "AAPL241220P00300000"],
6 TimeFrame::OneDay,
7 )
8 .start("2024-02-01")
9 .end("2024-02-24")
10 .limit(1)
11 .sort_desc()
12 .send()
13 .unwrap();
14}Sourcepub fn end(self, end: &'a str) -> Self
pub fn end(self, end: &'a str) -> Self
Examples found in repository?
examples/option_bars.rs (line 9)
3fn main() {
4 HistoricalOptionBarsQuery::new(
5 vec!["AAPL241220C00300000", "AAPL241220P00300000"],
6 TimeFrame::OneDay,
7 )
8 .start("2024-02-01")
9 .end("2024-02-24")
10 .limit(1)
11 .sort_desc()
12 .send()
13 .unwrap();
14}Sourcepub fn limit(self, limit: i32) -> Self
pub fn limit(self, limit: i32) -> Self
Examples found in repository?
examples/option_bars.rs (line 10)
3fn main() {
4 HistoricalOptionBarsQuery::new(
5 vec!["AAPL241220C00300000", "AAPL241220P00300000"],
6 TimeFrame::OneDay,
7 )
8 .start("2024-02-01")
9 .end("2024-02-24")
10 .limit(1)
11 .sort_desc()
12 .send()
13 .unwrap();
14}Sourcepub fn sort_desc(self) -> Self
pub fn sort_desc(self) -> Self
Examples found in repository?
examples/option_bars.rs (line 11)
3fn main() {
4 HistoricalOptionBarsQuery::new(
5 vec!["AAPL241220C00300000", "AAPL241220P00300000"],
6 TimeFrame::OneDay,
7 )
8 .start("2024-02-01")
9 .end("2024-02-24")
10 .limit(1)
11 .sort_desc()
12 .send()
13 .unwrap();
14}pub fn sort_asc(self) -> Self
Sourcepub fn send(self) -> Result<HistoricalBars, Error>
pub fn send(self) -> Result<HistoricalBars, Error>
Examples found in repository?
examples/option_bars.rs (line 12)
3fn main() {
4 HistoricalOptionBarsQuery::new(
5 vec!["AAPL241220C00300000", "AAPL241220P00300000"],
6 TimeFrame::OneDay,
7 )
8 .start("2024-02-01")
9 .end("2024-02-24")
10 .limit(1)
11 .sort_desc()
12 .send()
13 .unwrap();
14}Auto Trait Implementations§
impl<'a> Freeze for HistoricalOptionBarsQuery<'a>
impl<'a> RefUnwindSafe for HistoricalOptionBarsQuery<'a>
impl<'a> Send for HistoricalOptionBarsQuery<'a>
impl<'a> Sync for HistoricalOptionBarsQuery<'a>
impl<'a> Unpin for HistoricalOptionBarsQuery<'a>
impl<'a> UnsafeUnpin for HistoricalOptionBarsQuery<'a>
impl<'a> UnwindSafe for HistoricalOptionBarsQuery<'a>
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