[][src]Struct polygon_io::client::Client

pub struct Client {
    pub api_uri: String,
    pub stream_uri: String,
    pub key: String,
}

Fields

api_uri: Stringstream_uri: Stringkey: String

Implementations

impl Client[src]

pub fn open(path: &str) -> Client[src]

pub fn new() -> Client[src]

impl Client[src]

pub fn get_aggs(
    &self,
    symbol: &str,
    multiplier: i64,
    timespan: Timespan,
    from: NaiveDate,
    to: NaiveDate,
    params: Option<&HashMap<&str, String>>
) -> Result<AggResponse>
[src]

impl Client[src]

pub fn get_grouped(
    &self,
    locale: Locale,
    market: Market,
    date: NaiveDate,
    params: Option<&HashMap<&str, String>>
) -> Result<GroupedResponse>
[src]

impl Client[src]

pub fn get_prev(&self, symbol: &str) -> Result<PrevResponse>[src]

impl Client[src]

pub fn get_nbbo(
    &self,
    symbol: &str,
    date: NaiveDate,
    params: Option<&HashMap<&str, String>>
) -> Result<NBBOsResponse>
[src]

impl Client[src]

pub fn get_trades(
    &self,
    symbol: &str,
    date: NaiveDate,
    params: Option<&HashMap<&str, String>>
) -> Result<TradesResponse>
[src]

impl Client[src]

impl Client[src]

impl Client[src]

pub fn get_dividends(&self, symbol: &str) -> Result<DividendsResponse>[src]

impl Client[src]

pub fn get_financials(&self, symbol: &str) -> Result<FinancialsResponse>[src]

impl Client[src]

impl Client[src]

impl Client[src]

pub fn get_splits(&self, symbol: &str) -> Result<SplitsResponse>[src]

impl Client[src]

pub fn get_tickers(
    &self,
    params: Option<&HashMap<&str, String>>
) -> Result<TickersResponse>
[src]

pub fn get_us_tickers(&self, page: usize) -> Result<TickersResponse>[src]

impl Client[src]

Trait Implementations

impl Clone for Client[src]

impl Default for Client[src]

impl<'de> Deserialize<'de> for Client[src]

impl Serialize for Client[src]

Auto Trait Implementations

impl RefUnwindSafe for Client

impl Send for Client

impl Sync for Client

impl Unpin for Client

impl UnwindSafe for Client

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.