pub struct Client { /* private fields */ }Expand description
QuiverQuant API client
Implementations§
Source§impl Client
impl Client
Sourcepub fn with_base_url<A: Into<String>, B: Into<String>>(
api_token: A,
base_url: B,
) -> Self
pub fn with_base_url<A: Into<String>, B: Into<String>>( api_token: A, base_url: B, ) -> Self
Create a new API Client with your API Token and a specific base url
Sourcepub async fn congress_trades(&self) -> Result<CongressTrading, ClientError>
pub async fn congress_trades(&self) -> Result<CongressTrading, ClientError>
Returns all of the stock transactions by members of U.S. Congress involving the given ticker
Sourcepub async fn congress_trades_by_ticker<T: Into<String>>(
&self,
ticker: T,
) -> Result<CongressTrading, ClientError>
pub async fn congress_trades_by_ticker<T: Into<String>>( &self, ticker: T, ) -> Result<CongressTrading, ClientError>
Returns the most recent transactions by members of U.S. Congress
Sourcepub async fn senate_trades(&self) -> Result<SenateTrading, ClientError>
pub async fn senate_trades(&self) -> Result<SenateTrading, ClientError>
Returns the most recent transactions by U.S. Senators
Sourcepub async fn senate_trades_by_ticker<T: Into<String>>(
&self,
ticker: T,
) -> Result<SenateTrading, ClientError>
pub async fn senate_trades_by_ticker<T: Into<String>>( &self, ticker: T, ) -> Result<SenateTrading, ClientError>
Returns all of the stock transactions by U.S. Senators involving the given ticker
Sourcepub async fn house_trades(&self) -> Result<HouseTrading, ClientError>
pub async fn house_trades(&self) -> Result<HouseTrading, ClientError>
Returns the most recent transactions by U.S. Representatives
Sourcepub async fn house_trades_by_ticker<T: Into<String>>(
&self,
ticker: T,
) -> Result<HouseTrading, ClientError>
pub async fn house_trades_by_ticker<T: Into<String>>( &self, ticker: T, ) -> Result<HouseTrading, ClientError>
Returns all of the stock transactions by U.S. Representatives involving the given ticker
Sourcepub async fn gov_contracts(&self) -> Result<GovContracts, ClientError>
pub async fn gov_contracts(&self) -> Result<GovContracts, ClientError>
Returns last quarter’s government contract amounts for all companies
Sourcepub async fn gov_contracts_by_ticker<T: Into<String>>(
&self,
ticker: T,
) -> Result<GovContracts, ClientError>
pub async fn gov_contracts_by_ticker<T: Into<String>>( &self, ticker: T, ) -> Result<GovContracts, ClientError>
Returns historical quarterly government contracts amounts for the given ticker
Sourcepub async fn lobbying(&self) -> Result<Lobbying, ClientError>
pub async fn lobbying(&self) -> Result<Lobbying, ClientError>
Returns the most recent lobbying spending instances across all companies.
Sourcepub async fn lobbying_by_ticker<T: Into<String>>(
&self,
ticker: T,
) -> Result<Lobbying, ClientError>
pub async fn lobbying_by_ticker<T: Into<String>>( &self, ticker: T, ) -> Result<Lobbying, ClientError>
Returns all lobbying spending instances for the given ticker.