Skip to main content

OptionsProvider

Trait OptionsProvider 

Source
pub trait OptionsProvider: ProviderCore {
    // Required method
    fn fetch_options<'life0, 'life1, 'async_trait>(
        &'life0 self,
        symbol: &'life1 str,
        date: Option<i64>,
    ) -> Pin<Box<dyn Future<Output = Result<Options>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

crate::Capability::OPTIONS — options chains.

Required Methods§

Source

fn fetch_options<'life0, 'life1, 'async_trait>( &'life0 self, symbol: &'life1 str, date: Option<i64>, ) -> Pin<Box<dyn Future<Output = Result<Options>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Fetch the options chain for one symbol.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§