Finance Query Streaming API 2.1.0

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

  • QuoteType
    string

    Type of financial instrument

      Allowed values:
    • "NONE"
    • "ALT_SYMBOL"
    • "HEARTBEAT"
    • "EQUITY"
    • "INDEX"
    • "MUTUAL_FUND"
    • "MONEY_MARKET"
    • "OPTION"
    • "CURRENCY"
    • "WARRANT"
    • "BOND"
    • "FUTURE"
    • "ETF"
    • "COMMODITY"
    • "ECN_QUOTE"
    • "CRYPTOCURRENCY"
    • "INDICATOR"
    • "INDUSTRY"
  • MarketHoursType
    string

    Market hours indicator

      Allowed values:
    • "PRE_MARKET"
    • "REGULAR_MARKET"
    • "POST_MARKET"
    • "EXTENDED_HOURS_MARKET"
  • OptionType
    string

    Option type (for options contracts)

      Allowed values:
    • "CALL"
    • "PUT"