Finance Query Streaming API 2.4.2

Real-time price streaming from Yahoo Finance via WebSocket.

Connection Flow

  1. Connect to the WebSocket endpoint
  2. Send a subscribe message with ticker symbols
  3. Receive real-time price updates as they occur

Servers

  • finance-query.com/v2/streamwssproduction

    Production server

  • localhost:8000/v2/streamwsdevelopment

    Local development server

Operations

  • PUB /

    Send messages to the server

    Operation IDsendMessage

    Available only on servers:

    Accepts one of the following messages:

    • #0Subscribe Message

      Subscribe to ticker symbols

      object

      Examples

    • #1Unsubscribe Message

      Unsubscribe from ticker symbols

      object

      Examples

  • SUB /

    Receive price updates from the server

    Operation IDreceiveMessage

    Available only on servers:

    Accepts the following message:

    Price Update

    Real-time price update

    object

    Real-time price update from Yahoo Finance

    Examples

Messages

  • #1Subscribe Message

    Subscribe to ticker symbols

    Message IDSubscribe
    object
  • #2Unsubscribe Message

    Unsubscribe from ticker symbols

    Message IDUnsubscribe
    object
  • #3Price Update

    Real-time price update

    Message IDPriceUpdate
    object

    Real-time price update from Yahoo Finance

Schemas

  • object

    Real-time price update from Yahoo Finance

  • string

    Type of financial instrument

  • string

    Market hours indicator

  • string

    Option type (for options contracts)