Skip to main content

earnings_transcript

Function earnings_transcript 

Source
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:

  1. Gets the company ID (quartrId) from the quote_type endpoint
  2. Scrapes available earnings calls
  3. 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?;