pub async fn earnings_transcript(
symbol: &str,
quarter: Option<&str>,
year: Option<i32>,
) -> Result<Transcript>Expand description
Get earnings transcript for a symbol
Fetches the earnings call transcript, handling all the complexity internally:
- Gets the company ID (quartrId) from the quote_type endpoint
- Scrapes available earnings calls
- Fetches the requested transcript
§Arguments
symbol- Stock symbol (e.g., “AAPL”, “MSFT”)quarter- Optional fiscal quarter (Q1, Q2, Q3, Q4). If None, gets latest.year- Optional fiscal year. If None, gets latest.
§Examples
use finance_query::finance;
// Get the latest transcript
let latest = finance::earnings_transcript("AAPL", None, None).await?;
println!("Quarter: {} {}", latest.quarter(), latest.year());
// Get a specific quarter
let q4_2024 = finance::earnings_transcript("AAPL", Some("Q4"), Some(2024)).await?;