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

# getStocks

> Get stock information.



## OpenAPI

````yaml /openapi.yaml get /getStocks
openapi: 3.1.0
info:
  title: AlphaInsider
  version: '1.0'
  description: >-
    The official API and websocket documentation for
    [AlphaInsider.com](https://alphainsider.com/)
servers:
  - url: https://alphainsider.com/api
security: []
tags:
  - name: Introduction
  - name: Authentication
  - name: Users
  - name: Strategies
  - name: Subscriptions
  - name: Payments
  - name: Withdrawals
  - name: Timelines
  - name: Stocks
  - name: Trades
  - name: Webhooks
  - name: Bots
  - name: Websockets
paths:
  /getStocks:
    get:
      tags:
        - Stocks
      summary: getStocks
      description: Get stock information.
      operationId: getStocks
      parameters:
        - name: stock_id[]
          in: query
          required: true
          schema:
            type: array
            description: Array of stock IDs. `["stock:exchange"]` or `["stock_id"]`
            maxItems: 100
            items:
              $ref: '#/components/schemas/stock_id'
      responses:
        '200':
          description: Request was successful.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    $ref: '#/components/schemas/success'
                  response:
                    type: array
                    description: >-
                      Endpoint-specific response payload, or an error message
                      when `success` is false.
                    items:
                      type: object
                      properties:
                        stock_id:
                          $ref: '#/components/schemas/stock_id'
                        figi_composite:
                          type: string
                          description: Composite FIGI identifier when available.
                        symbol:
                          type: string
                          description: Ticker or asset symbol.
                        name:
                          type: string
                          description: Display name.
                        sector:
                          type: string
                          description: Sector or asset category.
                        security:
                          type: string
                          enum:
                            - cryptocurrency
                            - stock
                          description: Security type, such as stock or cryptocurrency.
                        exchange:
                          type: string
                          description: Exchange code.
                        stock:
                          type: string
                          description: Stock symbol as stored by AlphaInsider.
                        peg:
                          type: string
                          description: Peg or quote currency.
                        provider:
                          type: string
                          enum:
                            - coinbase
                            - binance
                            - massive
                            - alphainsider
                          description: External provider or data provider.
                        slippage:
                          type: string
                          description: Slippage value or configured slippage fraction.
                        fee:
                          type: string
                          description: Fee value.
                        links:
                          type: object
                          description: External research and market-data links.
                        stock_status:
                          type: string
                          enum:
                            - active
                            - deleted
                          description: Current stock status.
                        bid:
                          type: string
                          description: Current bid price.
                        ask:
                          type: string
                          description: Current ask price.
                        last:
                          type: string
                          description: Last traded price.
              examples:
                '200':
                  value:
                    success: true
                    response:
                      - stock_id: 9ot8fZX7romhU2Q8kV97r
                        figi_composite: BBG000N9MNX3
                        symbol: TSLA
                        name: Tesla, Inc. Common Stock
                        sector: Manufacturing
                        security: stock
                        exchange: XNAS
                        stock: TSLA
                        peg: USD
                        provider: polygon
                        slippage: '0.000000000000000'
                        fee: '0.000000000000000'
                        links:
                          finviz: https://www.finviz.com/quote.ashx?t=TSLA
                          trading_view: https://www.tradingview.com/symbols/NASDAQ-TSLA/
                          yahoo_finance: https://finance.yahoo.com/quote/TSLA
                          google_finance: https://www.google.com/finance/quote/TSLA:NASDAQ
                        stock_status: active
                        bid: '217.88'
                        ask: '217.96'
                        last: '217.96'
        '400':
          $ref: '#/components/responses/400'
components:
  schemas:
    stock_id:
      type: string
      description: AlphaInsider stock identifier, or `SYMBOL:EXCHANGE` in requests.
    success:
      type: boolean
      description: True when the request succeeded.
  responses:
    '400':
      description: Request failed.
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                description: False when the request failed.
              response:
                type: string
                description: Error message.
          examples:
            '400':
              value:
                success: false
                response: Request failed.

````