pub struct CompanySearch { /* private fields */ }Expand description
Company search API endpoints
Implementations§
Source§impl CompanySearch
impl CompanySearch
Sourcepub async fn search(
&self,
query: &str,
limit: Option<u32>,
exchange: Option<&str>,
) -> Result<Vec<CompanySearchResult>>
pub async fn search( &self, query: &str, limit: Option<u32>, exchange: Option<&str>, ) -> Result<Vec<CompanySearchResult>>
Search for companies by name or symbol
§Example
let client = FmpClient::new()?;
let results = client.company_search().search("Apple", None, None).await?;Sourcepub async fn search_symbol(
&self,
query: &str,
limit: Option<u32>,
exchange: Option<&str>,
) -> Result<Vec<CompanySearchResult>>
pub async fn search_symbol( &self, query: &str, limit: Option<u32>, exchange: Option<&str>, ) -> Result<Vec<CompanySearchResult>>
Search for companies by ticker symbol
Sourcepub async fn search_cik(
&self,
cik: &str,
limit: Option<u32>,
) -> Result<Vec<CompanySearchResult>>
pub async fn search_cik( &self, cik: &str, limit: Option<u32>, ) -> Result<Vec<CompanySearchResult>>
Search for companies by CIK number
Sourcepub async fn search_cusip(
&self,
cusip: &str,
) -> Result<Vec<CompanySearchResult>>
pub async fn search_cusip( &self, cusip: &str, ) -> Result<Vec<CompanySearchResult>>
Search for companies by CUSIP
Sourcepub async fn search_isin(&self, isin: &str) -> Result<Vec<CompanySearchResult>>
pub async fn search_isin(&self, isin: &str) -> Result<Vec<CompanySearchResult>>
Search for companies by ISIN
Auto Trait Implementations§
impl Freeze for CompanySearch
impl !RefUnwindSafe for CompanySearch
impl Send for CompanySearch
impl Sync for CompanySearch
impl Unpin for CompanySearch
impl !UnwindSafe for CompanySearch
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