[−][src]Struct fin_iex::provider::IEXProvider
This is the provider type for IEX, it contains communication parameters and defaults used when making requests to the IEX endpoints.
Methods
impl IEXProvider
[src]
pub fn make_api_url(
&self,
path: String,
query_params: Option<HashMap<String, String>>
) -> String
[src]
&self,
path: String,
query_params: Option<HashMap<String, String>>
) -> String
Construct a valid URL from the endpoint path and any additional query
parameters, such as format=json
.
Trait Implementations
impl Provider for IEXProvider
[src]
fn new() -> RequestResult<Self>
[src]
fn attribution(&self) -> String
[src]
fn url(&self) -> String
[src]
fn get_default_currency(&self) -> &String
[src]
fn finish(&self)
[src]
impl Peers for IEXProvider
[src]
fn peers(&self, for_symbol: Symbol) -> RequestResult<Symbols>
[src]
impl AnalystRecommendations for IEXProvider
[src]
fn target_price(
&self,
for_symbol: Symbol
) -> RequestResult<Snapshot<PriceTarget>>
[src]
&self,
for_symbol: Symbol
) -> RequestResult<Snapshot<PriceTarget>>
fn consensus_rating(
&self,
for_symbol: Symbol
) -> RequestResult<Vec<Bounded<Ratings>>>
[src]
&self,
for_symbol: Symbol
) -> RequestResult<Vec<Bounded<Ratings>>>
fn consensus_eps(&self, for_symbol: Symbol) -> RequestResult<Vec<EPSConsensus>>
[src]
impl FetchNews for IEXProvider
[src]
fn latest_news(
&self,
for_symbol: Symbol,
max_items: usize
) -> RequestResult<NewsFeed>
[src]
&self,
for_symbol: Symbol,
max_items: usize
) -> RequestResult<NewsFeed>
fn news_from(
&self,
for_symbol: Symbol,
start_date: Date,
max_items: usize
) -> RequestResult<NewsFeed>
[src]
&self,
for_symbol: Symbol,
start_date: Date,
max_items: usize
) -> RequestResult<NewsFeed>
impl FetchPriceQuote for IEXProvider
[src]
fn latest_price_only(&self, for_symbol: Symbol) -> RequestResult<Money>
[src]
fn real_time(&self, for_symbol: Symbol) -> RequestResult<Quote>
[src]
fn delayed(&self, for_symbol: Symbol) -> RequestResult<DelayedQuote>
[src]
impl FetchPriceRangeSeries for IEXProvider
[src]
fn intra_day(
&self,
for_symbol: Symbol,
interval_minutes: u8
) -> RequestResult<Option<PriceRangeSeries>>
[src]
&self,
for_symbol: Symbol,
interval_minutes: u8
) -> RequestResult<Option<PriceRangeSeries>>
fn last(
&self,
for_symbol: Symbol,
interval: SeriesInterval
) -> RequestResult<PriceRangeSeries>
[src]
&self,
for_symbol: Symbol,
interval: SeriesInterval
) -> RequestResult<PriceRangeSeries>
fn from(
&self,
for_symbol: Symbol,
start_date: DateTime,
interval: SeriesInterval
) -> RequestResult<PriceRangeSeries>
[src]
&self,
for_symbol: Symbol,
start_date: DateTime,
interval: SeriesInterval
) -> RequestResult<PriceRangeSeries>
fn for_period(
&self,
for_symbol: Symbol,
period: FinancialPeriod
) -> RequestResult<PriceRangeSeries>
[src]
&self,
for_symbol: Symbol,
period: FinancialPeriod
) -> RequestResult<PriceRangeSeries>
Auto Trait Implementations
impl Sync for IEXProvider
impl Send for IEXProvider
impl Unpin for IEXProvider
impl RefUnwindSafe for IEXProvider
impl UnwindSafe for IEXProvider
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self