> ## Documentation Index
> Fetch the complete documentation index at: https://finance.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Earnings Calendar

> Retrieve earnings calendar data for a date range. Optionally filter by symbol.



## OpenAPI

````yaml https://spec.speakeasy.com/aries/aries/aries-trading-platform-api-with-code-samples get /v1/calendars/earnings
openapi: 3.0.3
info:
  title: Aries Trading Platform API
  description: >-
    Complete API documentation for the Aries trading platform including user
    management, authentication, account management, order management, market
    data, and analytics
  contact:
    name: Aries Financial
    email: dev@aries.com
  version: 1.0.0
servers:
  - url: https://api.tradearies.dev
    description: Production server
security: []
tags:
  - name: Accounts
    description: Account management endpoints for positions, orders, and balances
  - name: Analytics
    description: >-
      Analytics endpoints for market data analysis including top gainers,
      losers, volume leaders, sector analysis, analyst ratings, market breadth,
      and net inflow
  - name: Authentication
    description: User authentication endpoints
  - name: Calendars
    description: Calendar endpoints for economic events and historical data
  - name: Market Data
    description: >-
      Market data endpoints for symbol search, real-time data access, and equity
      details
  - name: Orders
    description: >-
      Order management endpoints for placing, updating, canceling, and
      previewing orders
  - name: Users
    description: User management endpoints
  - name: Health
    description: Service health endpoints
paths:
  /v1/calendars/earnings:
    get:
      tags:
        - Calendars
      summary: Get Earnings Calendar
      description: >-
        Retrieve earnings calendar data for a date range. Optionally filter by
        symbol.
      operationId: getEarningsCalendar
      parameters:
        - name: from
          in: query
          description: Start date in YYYY-MM-DD format
          required: true
          schema:
            type: string
            format: date
            example: '2024-01-01'
        - name: to
          in: query
          description: End date in YYYY-MM-DD format
          required: true
          schema:
            type: string
            format: date
            example: '2024-01-31'
        - name: symbol
          in: query
          description: >-
            Optional stock symbol to filter results. If not provided, returns
            earnings for all symbols.
          required: false
          schema:
            type: string
            example: AAPL
      responses:
        '200':
          description: Earnings calendar data retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetEarningsCalendarResponse'
        '400':
          description: Bad request - missing or invalid date parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized - invalid authentication
        '500':
          description: Internal server error
      security:
        - BearerAuth: []
      x-codeSamples:
        - lang: python
          label: Python (SDK)
          source: |-
            from datetime import date
            from finance_dev import FinanceDev, models
            import os


            with FinanceDev(
                security=models.Security(
                    client_id=os.getenv("FINANCEDEV_CLIENT_ID", ""),
                    client_secret=os.getenv("FINANCEDEV_CLIENT_SECRET", ""),
                ),
            ) as fd_client:

                res = fd_client.calendar.get_earnings_calendar(from_=date.fromisoformat("2024-01-01"), to=date.fromisoformat("2024-01-31"), symbol="AAPL")

                # Handle response
                print(res)
        - lang: java
          label: Java (SDK)
          source: >-
            package hello.world;


            import java.lang.Exception;

            import java.time.LocalDate;

            import org.openapis.openapi.AriesJava;

            import org.openapis.openapi.models.errors.ErrorResponse;

            import
            org.openapis.openapi.models.operations.GetEarningsCalendarResponse;


            public class Application {

                public static void main(String[] args) throws ErrorResponse, Exception {

                    AriesJava sdk = AriesJava.builder()
                            .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
                        .build();

                    GetEarningsCalendarResponse res = sdk.calendars().getEarnings()
                            .from(LocalDate.parse("2024-01-01"))
                            .to(LocalDate.parse("2024-01-31"))
                            .symbol("AAPL")
                            .call();

                    if (res.getEarningsCalendarResponse().isPresent()) {
                        // handle response
                    }
                }
            }
components:
  schemas:
    GetEarningsCalendarResponse:
      type: array
      items:
        $ref: '#/components/schemas/EarningRelease'
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error message
        codes:
          type: array
          items:
            type: object
            properties:
              code:
                type: string
                description: Error code
              description:
                type: string
                description: Error description
    EarningRelease:
      type: object
      properties:
        date:
          type: string
          description: Earnings release date
        epsActual:
          type: number
          description: Actual earnings per share
          nullable: true
        epsEstimate:
          type: number
          description: Estimated earnings per share
          nullable: true
        hour:
          type: string
          description: >-
            Time of day for earnings release (e.g., 'bmo' for before market
            open, 'amc' for after market close)
        quarter:
          type: integer
          description: Quarter number (1-4)
        revenueActual:
          type: number
          description: Actual revenue
          nullable: true
        revenueEstimate:
          type: number
          description: Estimated revenue
          nullable: true
        symbol:
          type: string
          description: Stock ticker symbol
        year:
          type: integer
          description: Year of the earnings
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````