pub struct Polygon { /* private fields */ }Expand description
Fetch time series stock data from Polygon.io, implements Publisher trait
Implementations§
Source§impl Polygon
impl Polygon
Sourcepub fn intraday_series(
&mut self,
symbol: impl Into<String>,
from_date: impl Into<String>,
to_date: impl Into<String>,
interval: Interval,
limit: i32,
) -> MarketResult<()>
pub fn intraday_series( &mut self, symbol: impl Into<String>, from_date: impl Into<String>, to_date: impl Into<String>, interval: Interval, limit: i32, ) -> MarketResult<()>
Request for intraday series it supports only the following intervals: 1min, 5min, 15min, 30min, 1h, 2h, 4h
Sourcepub fn daily_series(
&mut self,
symbol: impl Into<String>,
from_date: impl Into<String>,
to_date: impl Into<String>,
limit: i32,
)
pub fn daily_series( &mut self, symbol: impl Into<String>, from_date: impl Into<String>, to_date: impl Into<String>, limit: i32, )
Request for daily series
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Polygon
impl RefUnwindSafe for Polygon
impl Send for Polygon
impl Sync for Polygon
impl Unpin for Polygon
impl UnwindSafe for Polygon
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