> ## 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 Analyst Ratings

> Retrieve analyst ratings for stocks with filtering options



## OpenAPI

````yaml https://spec.speakeasy.com/aries/aries/aries-trading-platform-api-with-code-samples get /v1/analytics/ratings
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/analytics/ratings:
    get:
      tags:
        - Analytics
      summary: Get Analyst Ratings
      description: Retrieve analyst ratings for stocks with filtering options
      operationId: getRatings
      parameters:
        - name: tickers
          in: query
          description: Comma-separated list of ticker symbols (max 50)
          required: false
          schema:
            type: string
            example: AAPL,GOOGL
        - name: page
          in: query
          description: Page number for pagination
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
        - name: pageSize
          in: query
          description: Number of results per page (max 1000)
          required: false
          schema:
            type: integer
            maximum: 1000
            minimum: 1
            default: 20
        - name: date
          in: query
          description: Specific date in YYYY-MM-DD format
          required: false
          schema:
            type: string
            format: date
        - name: dateFrom
          in: query
          description: Start date in YYYY-MM-DD format
          required: false
          schema:
            type: string
            format: date
        - name: dateTo
          in: query
          description: End date in YYYY-MM-DD format
          required: false
          schema:
            type: string
            format: date
        - name: importance
          in: query
          description: Minimum importance level (0-5)
          required: false
          schema:
            type: integer
            maximum: 5
            minimum: 0
      responses:
        '200':
          description: Analyst ratings retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetRatingsResponse'
        '401':
          description: Unauthorized - invalid authentication
        '500':
          description: Internal server error
      security:
        - BearerAuth: []
      x-codeSamples:
        - lang: python
          label: Python (SDK)
          source: |-
            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.analytics.get(tickers="AAPL,GOOGL", page=1, page_size=20)

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

            import java.lang.Exception;
            import org.openapis.openapi.AriesJava;
            import org.openapis.openapi.models.operations.GetRatingsRequest;
            import org.openapis.openapi.models.operations.GetRatingsResponse;

            public class Application {

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

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

                    GetRatingsRequest req = GetRatingsRequest.builder()
                            .tickers("AAPL,GOOGL")
                            .build();

                    GetRatingsResponse res = sdk.analytics().getRatings()
                            .request(req)
                            .call();

                    if (res.getRatingsResponse().isPresent()) {
                        // handle response
                    }
                }
            }
components:
  schemas:
    GetRatingsResponse:
      type: object
      properties:
        ratings:
          type: array
          items:
            $ref: '#/components/schemas/Rating'
    Rating:
      type: object
      properties:
        id:
          type: string
          description: Rating unique identifier
        date:
          type: string
          description: Rating date
        ticker:
          type: string
          description: Stock ticker symbol
        name:
          type: string
          description: Company name
        ratingCurrent:
          type: string
          description: Current rating
        ratingPrior:
          type: string
          description: Prior rating
        ptCurrent:
          type: number
          description: Current price target
          nullable: true
        ptPrior:
          type: number
          description: Prior price target
          nullable: true
        analystName:
          type: string
          description: Analyst display name
        ratingsAccuracy:
          $ref: '#/components/schemas/RatingsAccuracy'
          nullable: true
        importance:
          type: integer
          format: int64
          description: Rating importance level
        updated:
          type: string
          description: Last updated timestamp in RFC3339 format
    RatingsAccuracy:
      type: object
      properties:
        smartScore:
          type: number
          description: Analyst smart score
          nullable: true
        successRate:
          type: number
          description: Overall success rate
          nullable: true
        totalRatings:
          type: integer
          description: Total number of ratings
          nullable: true
        avgReturn1m:
          type: number
          description: Average return in 1 month
          nullable: true
        avgReturn3m:
          type: number
          description: Average return in 3 months
          nullable: true
        avgReturn1y:
          type: number
          description: Average return in 1 year
          nullable: true
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````