[][src]Trait quotes::Quote

pub trait Quote {
    pub fn new() -> Result<Self, Error>
    where
        Self: Sized
;
pub fn base_url() -> String;
pub fn client(&self) -> &Client;
pub fn parse_out_tick(msg: &str) -> Option<Tick>; #[must_use] pub fn small_tick_map<'life0, 'life1, 'async_trait>(
        &'life0 self,
        codes: &'life1 [String]
    ) -> Pin<Box<dyn Future<Output = Result<HashMap<String, Tick>, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: Sync + 'async_trait
, { ... }
#[must_use] pub fn tick<'life0, 'life1, 'async_trait>(
        &'life0 self,
        code: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Tick, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: Sync + 'async_trait
, { ... }
#[must_use] pub fn current_price<'life0, 'life1, 'async_trait>(
        &'life0 self,
        code: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<f64, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: Sync + 'async_trait
, { ... }
#[must_use] pub fn pre_close<'life0, 'life1, 'async_trait>(
        &'life0 self,
        code: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<f64, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: Sync + 'async_trait
, { ... }
#[must_use] pub fn open<'life0, 'life1, 'async_trait>(
        &'life0 self,
        code: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<f64, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: Sync + 'async_trait
, { ... }
#[must_use] pub fn pct_change<'life0, 'life1, 'async_trait>(
        &'life0 self,
        code: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<f64, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: Sync + 'async_trait
, { ... }
#[must_use] pub fn tick_map<'life0, 'life1, 'async_trait>(
        &'life0 self,
        codes: Vec<&'life1 str>
    ) -> Pin<Box<dyn Future<Output = Result<HashMap<String, Tick>, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: Sync + 'async_trait
, { ... } }

Required methods

pub fn new() -> Result<Self, Error> where
    Self: Sized
[src]

pub fn base_url() -> String[src]

pub fn client(&self) -> &Client[src]

pub fn parse_out_tick(msg: &str) -> Option<Tick>[src]

Loading content...

Provided methods

#[must_use]pub fn small_tick_map<'life0, 'life1, 'async_trait>(
    &'life0 self,
    codes: &'life1 [String]
) -> Pin<Box<dyn Future<Output = Result<HashMap<String, Tick>, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: Sync + 'async_trait, 
[src]

#[must_use]pub fn tick<'life0, 'life1, 'async_trait>(
    &'life0 self,
    code: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Tick, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: Sync + 'async_trait, 
[src]

#[must_use]pub fn current_price<'life0, 'life1, 'async_trait>(
    &'life0 self,
    code: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<f64, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: Sync + 'async_trait, 
[src]

#[must_use]pub fn pre_close<'life0, 'life1, 'async_trait>(
    &'life0 self,
    code: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<f64, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: Sync + 'async_trait, 
[src]

#[must_use]pub fn open<'life0, 'life1, 'async_trait>(
    &'life0 self,
    code: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<f64, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: Sync + 'async_trait, 
[src]

#[must_use]pub fn pct_change<'life0, 'life1, 'async_trait>(
    &'life0 self,
    code: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<f64, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: Sync + 'async_trait, 
[src]

#[must_use]pub fn tick_map<'life0, 'life1, 'async_trait>(
    &'life0 self,
    codes: Vec<&'life1 str>
) -> Pin<Box<dyn Future<Output = Result<HashMap<String, Tick>, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: Sync + 'async_trait, 
[src]

Loading content...

Implementors

impl Quote for SinaQuote[src]

impl Quote for TencentQuote[src]

Loading content...