Synoptic Streaming API

Real‑time streaming API providing market data events via AsyncAPI.

GitHub

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/synoptic-com:synoptic-streaming-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

AsyncAPI Specification

synoptic-com-asyncapi.yaml Raw ↑
asyncapi: 3.0.0
channels:
  addStreamPost:
    address: /add-stream-post
    messages:
      AddStreamPostMessage:
        $ref: '#/components/messages/AddStreamPostMessage'
      InfoMessage:
        $ref: '#/components/messages/InfoMessage'
      KeepAliveMessage:
        $ref: '#/components/messages/KeepAliveMessage'
      StreamPostCreatedMessage:
        $ref: '#/components/messages/StreamPostCreatedMessage'
  onStreamPost:
    address: /on-stream-post
    description: Subscribe to stream posts. Open with optional `streamIds` and `lastPosts` query parameters.
    messages:
      InfoMessage:
        $ref: '#/components/messages/InfoMessage'
      KeepAliveMessage:
        $ref: '#/components/messages/KeepAliveMessage'
      StreamPostCreatedMessage:
        $ref: '#/components/messages/StreamPostCreatedMessage'
      SubscriptionAckMessage:
        $ref: '#/components/messages/SubscriptionAckMessage'
  onTimeSeries:
    address: /on-time-series
    description: Subscribe to time series updates. Send subscribe/unsubscribe actions; each subscribe is answered with a snapshot of the latest value per matching dimension, followed by updates as new points arrive.
    messages:
      InfoMessage:
        $ref: '#/components/messages/InfoMessage'
      KeepAliveMessage:
        $ref: '#/components/messages/KeepAliveMessage'
      TimeSeriesError:
        $ref: '#/components/messages/TimeSeriesError'
      TimeSeriesPointsUpdate:
        $ref: '#/components/messages/TimeSeriesPointsUpdate'
      TimeSeriesSnapshotMessage:
        $ref: '#/components/messages/TimeSeriesSnapshotMessage'
      TimeSeriesSubscribe:
        $ref: '#/components/messages/TimeSeriesSubscribe'
      TimeSeriesUnsubscribe:
        $ref: '#/components/messages/TimeSeriesUnsubscribe'
      TimeSeriesUnsubscribed:
        $ref: '#/components/messages/TimeSeriesUnsubscribed'
  sourcePost:
    address: /source-post
    messages:
      IncomingMessage:
        $ref: '#/components/messages/IncomingMessage'
      WsResponse:
        $ref: '#/components/messages/WsResponse'
  timeSeries:
    address: /time-series
    description: Publish time series points. The API key must list the series in canPublishTimeSeries.
    messages:
      InfoMessage:
        $ref: '#/components/messages/InfoMessage'
      TimeSeriesAck:
        $ref: '#/components/messages/TimeSeriesAck'
      TimeSeriesPointsMessage:
        $ref: '#/components/messages/TimeSeriesPointsMessage'
components:
  messages:
    AddStreamPostMessage:
      contentType: application/json
      name: AddStreamPostMessage
      payload:
        $schema: http://json-schema.org/draft-07/schema#
        properties:
          data:
            properties:
              content:
                type: string
              contentType:
                type:
                  - string
                  - 'null'
              customTarget:
                type:
                  - string
                  - 'null'
              idempotencyKey:
                type:
                  - string
                  - 'null'
              metadata: true
              streamId:
                type: string
              uploadMedia: true
              vendorMetadata: true
            required:
              - streamId
              - content
            type: object
          event:
            type: string
        required:
          - event
          - data
        title: AddStreamPostMessage
        type: object
      summary: Publish a post to a stream
      title: Add Stream Post Request
    IncomingMessage:
      contentType: application/json
      name: IncomingMessage
      payload:
        $schema: http://json-schema.org/draft-07/schema#
        properties:
          data: true
          idempotencyKey:
            type:
              - string
              - 'null'
          sourceId:
            type: string
        required:
          - data
          - sourceId
        title: IncomingMessage
        type: object
      summary: Send a data payload to a source for validation and persistence
      title: Source Post Publish Request
    InfoMessage:
      contentType: application/json
      name: InfoMessage
      payload:
        $schema: http://json-schema.org/draft-07/schema#
        properties:
          data:
            properties:
              message:
                type: string
            required:
              - message
            type: object
          event:
            type: string
        required:
          - event
          - data
        title: InfoMessage
        type: object
      summary: Informational message or validation error
      title: Info Message
    KeepAliveMessage:
      contentType: application/json
      name: KeepAliveMessage
      payload:
        $schema: http://json-schema.org/draft-07/schema#
        properties:
          data:
            type: object
          event:
            type: string
        required:
          - event
          - data
        title: KeepAliveMessage
        type: object
      summary: Periodic keep-alive frame
      title: Keep Alive
    StreamPostCreatedMessage:
      contentType: application/json
      name: StreamPostCreatedMessage
      payload:
        $schema: http://json-schema.org/draft-07/schema#
        properties:
          data:
            properties:
              createdAt:
                type:
                  - string
                  - 'null'
              customTarget:
                type:
                  - string
                  - 'null'
              id:
                type:
                  - string
                  - 'null'
              metadata: true
              streamId:
                type: string
              text:
                type:
                  - string
                  - 'null'
              vendorMetadata: true
            required:
              - streamId
            type: object
          event:
            type: string
        required:
          - event
          - data
        title: StreamPostCreatedMessage
        type: object
      summary: A stream post delivered to the publisher or subscriber
      title: Stream Post Created
    SubscriptionAckMessage:
      contentType: application/json
      name: SubscriptionAckMessage
      payload:
        $schema: http://json-schema.org/draft-07/schema#
        properties:
          data:
            properties:
              message:
                type: string
            required:
              - message
            type: object
          event:
            type: string
        required:
          - event
          - data
        title: SubscriptionAckMessage
        type: object
      summary: Acknowledges a successful on-stream-post subscription
      title: Subscription Acknowledgement
    TimeSeriesAck:
      contentType: application/json
      name: TimeSeriesAck
      payload:
        $schema: http://json-schema.org/draft-07/schema#
        properties:
          errors:
            items:
              type: string
            type: array
          ok:
            type: boolean
          seriesId:
            type: string
          written:
            format: uint64
            minimum: 0.0
            type: integer
        required:
          - errors
          - ok
          - seriesId
          - written
        title: TimeSeriesAck
        type: object
      summary: 'Whether the points were stored, and how many. Validation errors name the offending field, e.g. `points[3].labels: ...`.'
      title: Time Series Write Result
    TimeSeriesError:
      contentType: application/json
      name: TimeSeriesError
      payload:
        $schema: http://json-schema.org/draft-07/schema#
        properties:
          data:
            properties:
              message:
                type: string
              seriesId:
                type:
                  - string
                  - 'null'
            required:
              - message
            type: object
          event:
            enum:
              - error
            type: string
        required:
          - event
          - data
        title: TimeSeriesError
        type: object
      summary: A rejected request (bad message, unknown action, access denied, unknown series, too many subscriptions). The connection stays open unless the API key is invalid, which closes it with code 4001.
      title: Time Series Subscription Error
    TimeSeriesPointsMessage:
      contentType: application/json
      name: TimeSeriesPointsMessage
      payload:
        $schema: http://json-schema.org/draft-07/schema#
        properties:
          labels:
            additionalProperties:
              type: string
            default: null
            description: Default labels applied to every point in the message. Each distinct label set is a separate dimension of the series; points without labels belong to the unlabelled dimension.
            type:
              - object
              - 'null'
          points:
            items:
              properties:
                labels:
                  additionalProperties:
                    type: string
                  default: null
                  description: Labels of this point; each key overrides the message-level label of the same name. Keys match ^[a-z][a-z0-9_]{0,31}$, values are strings of 1-64 characters, at most 16 labels after merging.
                  type:
                    - object
                    - 'null'
                time:
                  anyOf:
                    - format: double
                      type: number
                    - type: string
                value:
                  format: double
                  type: number
              required:
                - time
                - value
              type: object
            type: array
          seriesId:
            type: string
        required:
          - points
          - seriesId
        title: IncomingTimeSeriesMessage
        type: object
      summary: Write up to 1000 points to a time series. `time` is an RFC 3339 string or unix milliseconds. Message-level `labels` apply to every point and a point's own `labels` override them per key; each distinct label set is a dimension of the series. A point at an existing time and label set replaces its value.
      title: Time Series Points
    TimeSeriesPointsUpdate:
      contentType: application/json
      name: TimeSeriesPointsUpdate
      payload:
        $schema: http://json-schema.org/draft-07/schema#
        properties:
          data:
            properties:
              points:
                items:
                  properties:
                    labels:
                      additionalProperties:
                        type: string
                      default: {}
                      type: object
                    time:
                      type: string
                    value:
                      format: double
                      type: number
                  required:
                    - time
                    - value
                  type: object
                type: array
              seriesId:
                type: string
            required:
              - points
              - seriesId
            type: object
          event:
            enum:
              - time_series.points
            type: string
        required:
          - event
          - data
        title: TimeSeriesPointsUpdate
        type: object
      summary: Points that became the newest value of their dimension, filtered by the subscription's labels. An update may repeat a point already in the snapshot.
      title: Time Series Update
    TimeSeriesSnapshotMessage:
      contentType: application/json
      name: TimeSeriesSnapshotMessage
      payload:
        $schema: http://json-schema.org/draft-07/schema#
        properties:
          data:
            properties:
              name:
                type: string
              points:
                items:
                  properties:
                    labels:
                      additionalProperties:
                        type: string
                      default: {}
                      type: object
                    time:
                      type: string
                    value:
                      format: double
                      type: number
                  required:
                    - time
                    - value
                  type: object
                type: array
              seriesId:
                type: string
              unit:
                type:
                  - string
                  - 'null'
            required:
              - name
              - points
              - seriesId
            type: object
          event:
            enum:
              - time_series.snapshot
            type: string
        required:
          - event
          - data
        title: TimeSeriesSnapshotMessage
        type: object
      summary: The latest point of every dimension matching the filter, sent in reply to subscribe before any update
      title: Time Series Snapshot
    TimeSeriesSubscribe:
      contentType: application/json
      name: TimeSeriesSubscribe
      payload:
        $schema: http://json-schema.org/draft-07/schema#
        properties:
          action:
            enum:
              - subscribe
            type: string
          labels:
            additionalProperties:
              anyOf:
                - type: string
                - items:
                    type: string
                  type: array
            description: 'Label filter: a point matches when, for every key, its label is one of the listed values. Omit or leave empty to receive every dimension.'
            type:
              - object
              - 'null'
          seriesId:
            type: string
        required:
          - action
          - seriesId
        title: TimeSeriesSubscribe
        type: object
      summary: Subscribe to one series (at most 20 per connection). Each `labels` value is a string or an array of strings; keys are ANDed, values within a key are ORed. Re-subscribing replaces the filter and sends a fresh snapshot.
      title: Subscribe to a Time Series
    TimeSeriesUnsubscribe:
      contentType: application/json
      name: TimeSeriesUnsubscribe
      payload:
        $schema: http://json-schema.org/draft-07/schema#
        properties:
          action:
            enum:
              - unsubscribe
            type: string
          seriesId:
            type: string
        required:
          - action
          - seriesId
        title: TimeSeriesUnsubscribe
        type: object
      summary: Stop receiving updates for a series
      title: Unsubscribe from a Time Series
    TimeSeriesUnsubscribed:
      contentType: application/json
      name: TimeSeriesUnsubscribed
      payload:
        $schema: http://json-schema.org/draft-07/schema#
        properties:
          data:
            properties:
              seriesId:
                type: string
            required:
              - seriesId
            type: object
          event:
            enum:
              - time_series.unsubscribed
            type: string
        required:
          - event
          - data
        title: TimeSeriesUnsubscribed
        type: object
      summary: Confirms an unsubscribe
      title: Time Series Unsubscribed
    WsResponse:
      contentType: application/json
      name: WsResponse
      payload:
        $schema: http://json-schema.org/draft-07/schema#
        properties:
          errors:
            items:
              type: string
            type: array
          sourceId:
            type: string
          valid:
            type: boolean
        required:
          - errors
          - sourceId
          - valid
        title: WsResponse
        type: object
      summary: Response indicating whether the published data passed schema validation
      title: Validation Result
info:
  description: WebSocket API for subscribing to stream posts, publishing stream posts, publishing source posts with JSON Schema validation, publishing labelled time series points, and subscribing to time series updates. Authenticate via x-api-key header during the WebSocket upgrade handshake. The latest value of every dimension of a time series is also served over HTTP at GET /v1/time-series/{seriesId}/latest (x-api-key header; query parameters are label filters, comma-separated for several values).
  title: Synoptic WebSocket API
  version: 1.0.0
operations:
  publishPost:
    action: send
    channel:
      $ref: '#/channels/sourcePost'
    messages:
      - $ref: '#/channels/sourcePost/messages/IncomingMessage'
  publishStreamPost:
    action: send
    channel:
      $ref: '#/channels/addStreamPost'
    messages:
      - $ref: '#/channels/addStreamPost/messages/AddStreamPostMessage'
  publishTimeSeriesPoints:
    action: send
    channel:
      $ref: '#/channels/timeSeries'
    messages:
      - $ref: '#/channels/timeSeries/messages/TimeSeriesPointsMessage'
  receivePublishedStreamPost:
    action: receive
    channel:
      $ref: '#/channels/addStreamPost'
    messages:
      - $ref: '#/channels/addStreamPost/messages/StreamPostCreatedMessage'
      - $ref: '#/channels/addStreamPost/messages/InfoMessage'
      - $ref: '#/channels/addStreamPost/messages/KeepAliveMessage'
  receiveStreamPosts:
    action: receive
    channel:
      $ref: '#/channels/onStreamPost'
    messages:
      - $ref: '#/channels/onStreamPost/messages/SubscriptionAckMessage'
      - $ref: '#/channels/onStreamPost/messages/StreamPostCreatedMessage'
      - $ref: '#/channels/onStreamPost/messages/InfoMessage'
      - $ref: '#/channels/onStreamPost/messages/KeepAliveMessage'
  receiveTimeSeries:
    action: receive
    channel:
      $ref: '#/channels/onTimeSeries'
    messages:
      - $ref: '#/channels/onTimeSeries/messages/TimeSeriesSnapshotMessage'
      - $ref: '#/channels/onTimeSeries/messages/TimeSeriesPointsUpdate'
      - $ref: '#/channels/onTimeSeries/messages/TimeSeriesUnsubscribed'
      - $ref: '#/channels/onTimeSeries/messages/TimeSeriesError'
      - $ref: '#/channels/onTimeSeries/messages/InfoMessage'
      - $ref: '#/channels/onTimeSeries/messages/KeepAliveMessage'
  subscribeTimeSeries:
    action: send
    channel:
      $ref: '#/channels/onTimeSeries'
    messages:
      - $ref: '#/channels/onTimeSeries/messages/TimeSeriesSubscribe'
      - $ref: '#/channels/onTimeSeries/messages/TimeSeriesUnsubscribe'
  timeSeriesWriteResult:
    action: receive
    channel:
      $ref: '#/channels/timeSeries'
    messages:
      - $ref: '#/channels/timeSeries/messages/TimeSeriesAck'
      - $ref: '#/channels/timeSeries/messages/InfoMessage'
  validationResult:
    action: receive
    channel:
      $ref: '#/channels/sourcePost'
    messages:
      - $ref: '#/channels/sourcePost/messages/WsResponse'
servers:
  ws-api:
    host: ws.api.synoptic.com
    pathname: /v1
    protocol: wss