pub struct MiscEndpoints<'a> { /* private fields */ }Expand description
Miscellaneous API endpoints.
Implementations§
Source§impl<'a> MiscEndpoints<'a>
impl<'a> MiscEndpoints<'a>
Sourcepub fn new(client: &'a FinnhubClient) -> Self
pub fn new(client: &'a FinnhubClient) -> Self
Create a new instance of misc endpoints.
Sourcepub async fn ai_chat(&self, _request: &AIChatRequest) -> Result<AIChatResponse>
pub async fn ai_chat(&self, _request: &AIChatRequest) -> Result<AIChatResponse>
Chat with AI copilot powered by Neyman AI.
Sourcepub async fn airline_price_index(
&self,
airline: &str,
from: &str,
to: &str,
) -> Result<AirlinePriceIndexData>
pub async fn airline_price_index( &self, airline: &str, from: &str, to: &str, ) -> Result<AirlinePriceIndexData>
Get airline ticket price index.
Sourcepub async fn country(&self) -> Result<Vec<CountryMetadata>>
pub async fn country(&self) -> Result<Vec<CountryMetadata>>
List all countries and metadata.
Sourcepub async fn covid19(&self) -> Result<Vec<CovidInfo>>
pub async fn covid19(&self) -> Result<Vec<CovidInfo>>
Get real-time COVID-19 data for US states.
Sourcepub async fn fda_calendar(&self) -> Result<Vec<FDACommitteeMeeting>>
pub async fn fda_calendar(&self) -> Result<Vec<FDACommitteeMeeting>>
FDA’s advisory committee calendar.
Sourcepub async fn technical_indicator(
&self,
symbol: &str,
resolution: &str,
from: i64,
to: i64,
indicator: &str,
indicator_fields: Option<Value>,
) -> Result<TechnicalIndicator>
pub async fn technical_indicator( &self, symbol: &str, resolution: &str, from: i64, to: i64, indicator: &str, indicator_fields: Option<Value>, ) -> Result<TechnicalIndicator>
Get technical indicator with price data.
Sourcepub async fn press_releases(
&self,
symbol: &str,
from: Option<&str>,
to: Option<&str>,
) -> Result<PressRelease>
pub async fn press_releases( &self, symbol: &str, from: Option<&str>, to: Option<&str>, ) -> Result<PressRelease>
Get latest major press releases of a company.
Sourcepub async fn symbol_search(
&self,
query: &str,
exchange: Option<&str>,
) -> Result<SymbolLookup>
pub async fn symbol_search( &self, query: &str, exchange: Option<&str>, ) -> Result<SymbolLookup>
Search for best-matching symbols based on query.
Sourcepub async fn sector_metrics(&self, region: &str) -> Result<SectorMetric>
pub async fn sector_metrics(&self, region: &str) -> Result<SectorMetric>
Get ratios for different sectors and regions/indices.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for MiscEndpoints<'a>
impl<'a> !UnwindSafe for MiscEndpoints<'a>
impl<'a> Freeze for MiscEndpoints<'a>
impl<'a> Send for MiscEndpoints<'a>
impl<'a> Sync for MiscEndpoints<'a>
impl<'a> Unpin for MiscEndpoints<'a>
impl<'a> UnsafeUnpin for MiscEndpoints<'a>
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