pub struct Quote { /* private fields */ }Expand description
Quote API endpoints
Implementations§
Source§impl Quote
impl Quote
Sourcepub async fn get_quote(&self, symbol: &str) -> Result<Vec<StockQuote>>
pub async fn get_quote(&self, symbol: &str) -> Result<Vec<StockQuote>>
Get full quote for a symbol
Sourcepub async fn get_quote_short(&self, symbol: &str) -> Result<Vec<ShortQuote>>
pub async fn get_quote_short(&self, symbol: &str) -> Result<Vec<ShortQuote>>
Get short quote for a symbol
Sourcepub async fn get_quote_batch(&self, symbols: &[&str]) -> Result<Vec<StockQuote>>
pub async fn get_quote_batch(&self, symbols: &[&str]) -> Result<Vec<StockQuote>>
Get quote for multiple symbols (batch)
Sourcepub async fn get_price_change(&self, symbol: &str) -> Result<Vec<PriceChange>>
pub async fn get_price_change(&self, symbol: &str) -> Result<Vec<PriceChange>>
Get price change data for a symbol
Sourcepub async fn get_exchange_quotes(
&self,
exchange: &str,
) -> Result<Vec<StockQuote>>
pub async fn get_exchange_quotes( &self, exchange: &str, ) -> Result<Vec<StockQuote>>
Get quotes for all stocks on an exchange
Sourcepub async fn get_all_etf_quotes(&self) -> Result<Vec<StockQuote>>
pub async fn get_all_etf_quotes(&self) -> Result<Vec<StockQuote>>
Get all ETF quotes
Sourcepub async fn get_all_crypto_quotes(&self) -> Result<Vec<StockQuote>>
pub async fn get_all_crypto_quotes(&self) -> Result<Vec<StockQuote>>
Get all cryptocurrency quotes
Sourcepub async fn get_all_forex_quotes(&self) -> Result<Vec<StockQuote>>
pub async fn get_all_forex_quotes(&self) -> Result<Vec<StockQuote>>
Get all forex quotes
Auto Trait Implementations§
impl Freeze for Quote
impl !RefUnwindSafe for Quote
impl Send for Quote
impl Sync for Quote
impl Unpin for Quote
impl !UnwindSafe for Quote
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