Finance Query Streaming API 2.8.0

Real-time price streaming from Yahoo Finance, and continuous RSS/Atom feed streaming, both via WebSocket.

Price stream connection flow (/v2/stream)

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

Feed stream connection flow (/v2/feeds/stream)

  1. Connect to the WebSocket endpoint
  2. Send a subscribe message with feed source slugs (same slugs accepted by GET /v2/feeds)
  3. Receive newly-seen feed entries as the server polls each source

RSS/Atom has no push transport of its own, so the feed stream polls every 5 minutes and fans out only entries not seen before (deduplicated by URL) — unlike the price stream, which is genuinely push end to end.

Servers

  • finance-query.com/v2/streamwssproduction

    Production server (price stream)

  • localhost:8000/v2/streamwsdevelopment

    Local development server (price stream)

  • finance-query.com/v2/feeds/streamwssfeedsProduction

    Production server (feed stream)

  • localhost:8000/v2/feeds/streamwsfeedsDevelopment

    Local development server (feed stream)

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

  • PUB /feeds

    Send messages to the server

    Operation IDsendFeedMessage

    Available only on servers:

    Accepts one of the following messages:

    • #0Subscribe Message

      Subscribe to feed sources

      object

      Examples

    • #1Unsubscribe Message

      Unsubscribe from feed sources

      object

      Examples

  • SUB /feeds

    Receive new feed entries from the server

    Operation IDreceiveFeedEntry

    Available only on servers:

    Accepts the following message:

    Feed Entry

    A newly-seen RSS/Atom feed entry

    object

    A single entry from an RSS/Atom feed

    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

  • #4Subscribe Message

    Subscribe to feed sources

    Message IDFeedSubscribe
    object
  • #5Unsubscribe Message

    Unsubscribe from feed sources

    Message IDFeedUnsubscribe
    object
  • #6Feed Entry

    A newly-seen RSS/Atom feed entry

    Message IDFeedEntryMessage
    object

    A single entry from an RSS/Atom feed

Schemas

  • object

    Real-time price update from Yahoo Finance

  • string

    Type of financial instrument

  • string

    Market hours indicator

  • string

    Option type (for options contracts)

  • object

    A single entry from an RSS/Atom feed