pub struct AlphaVantageClient { /* private fields */ }Expand description
Alpha Vantage client for market data
Implementations§
Source§impl AlphaVantageClient
impl AlphaVantageClient
Sourcepub fn new(config: AlphaVantageConfig) -> Self
pub fn new(config: AlphaVantageConfig) -> Self
Create a new Alpha Vantage client
Sourcepub async fn get_quote(
&self,
symbol: &str,
) -> Result<AlphaVantageQuote, AlphaVantageError>
pub async fn get_quote( &self, symbol: &str, ) -> Result<AlphaVantageQuote, AlphaVantageError>
Get real-time quote for a symbol
Sourcepub async fn get_daily(
&self,
symbol: &str,
outputsize: &str,
) -> Result<Vec<AlphaVantageBar>, AlphaVantageError>
pub async fn get_daily( &self, symbol: &str, outputsize: &str, ) -> Result<Vec<AlphaVantageBar>, AlphaVantageError>
Get daily time series data
Auto Trait Implementations§
impl !Freeze for AlphaVantageClient
impl !RefUnwindSafe for AlphaVantageClient
impl Send for AlphaVantageClient
impl Sync for AlphaVantageClient
impl Unpin for AlphaVantageClient
impl !UnwindSafe for AlphaVantageClient
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