pub struct Client { /* private fields */ }
Implementations§
Source§impl Client
impl Client
pub fn new() -> Self
pub async fn get_chart_data( &self, symbol: &str, interval: Interval, range: Range, include_pre_post: bool, ) -> Result<ChartData>
pub async fn get_company_data( &self, symbol: &str, crumb_data: CrumbData, ) -> Result<CompanyData>
pub async fn get_options_expiration_dates( &self, symbol: &str, ) -> Result<Vec<i64>>
pub async fn get_options_for_expiration_date( &self, symbol: &str, expiration_date: i64, ) -> Result<OptionsHeader>
pub async fn get_crumb(&self) -> Result<CrumbData>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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