> ## Documentation Index
> Fetch the complete documentation index at: https://v3.docs.derive.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Spot feed

> Channel name: `spot_feed.{currency}`. Public channel that streams the spot price feed for a given underlying, where {currency} selects the asset (e.g. ETH or BTC).



## AsyncAPI

````yaml subscriptions.asyncapi.json spotFeed
id: spotFeed
title: Spot feed
description: >-
  Channel name: `spot_feed.{currency}`. Public channel that streams the spot
  price feed for a given underlying, where {currency} selects the asset (e.g.
  ETH or BTC).
servers:
  - id: production
    protocol: wss
    host: api.derive.xyz
    bindings: []
    variables: []
  - id: testnet
    protocol: wss
    host: testnet.api.derive.xyz
    bindings: []
    variables: []
address: /v3/ws
parameters: []
bindings: []
operations:
  - &ref_7
    id: receive_spotFeed
    title: Receive_spot feed
    type: send
    messages:
      - &ref_10
        id: spotFeedNotification
        payload:
          - name: spotFeedNotification
            type: object
            properties:
              - name: feeds
                type: object
                required: true
                properties:
                  - name: '{key}'
                    type: object
                    required: false
                    properties:
                      - name: confidence
                        type: string
                        required: true
                      - name: confidence_prev_daily
                        type: string
                        required: true
                      - name: price
                        type: string
                        required: true
                      - name: price_prev_daily
                        type: string
                        required: true
                      - name: timestamp_prev_daily
                        type: integer
                        required: true
              - name: timestamp
                type: integer
                required: true
        headers: []
        jsonPayloadSchema:
          description: Payload for `spot_feed.{currency}` (and `spot_feed.ALL`).
          type: object
          required:
            - feeds
            - timestamp
          properties:
            feeds:
              type: object
              additionalProperties: &ref_0
                type: object
                required:
                  - confidence
                  - confidence_prev_daily
                  - price
                  - price_prev_daily
                  - timestamp_prev_daily
                properties:
                  confidence:
                    type: string
                    x-parser-schema-id: <anonymous-schema-45>
                  confidence_prev_daily:
                    type: string
                    x-parser-schema-id: <anonymous-schema-46>
                  price:
                    type: string
                    x-parser-schema-id: <anonymous-schema-47>
                  price_prev_daily:
                    type: string
                    x-parser-schema-id: <anonymous-schema-48>
                  timestamp_prev_daily:
                    type: integer
                    format: int64
                    x-parser-schema-id: <anonymous-schema-49>
                x-parser-schema-id: SpotFeedEntry
              properties:
                '{key}': *ref_0
              x-parser-schema-id: <anonymous-schema-44>
            timestamp:
              type: integer
              format: int64
              x-parser-schema-id: <anonymous-schema-50>
          x-parser-schema-id: SpotFeedPayload
        title: Spot feed notification
        example: No examples found
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: spotFeedNotification
    bindings: []
    extensions: &ref_5
      - id: x-parser-unique-object-id
        value: spotFeed
  - &ref_6
    id: send_subscribe_spotFeed
    title: Send_subscribe_spot feed
    type: receive
    messages:
      - &ref_8
        id: subscribeRequest
        payload:
          - name: subscribeRequest
            description: >-
              Send to subscribe: list this channel's address (with the {param}
              segments filled, e.g. orderbook.ETH-PERP.10.20) in
              params.channels.
            type: object
            properties:
              - name: headers
                type: &ref_1
                  - object
                  - 'null'
                description: Non-standard; used by `auth/login`.
                required: false
              - name: id
                type: anyOf
                required: true
              - name: method
                type: string
                description: subscribe
                required: true
              - name: params
                type: object
                description: >-
                  Params for `subscribe`. `channels` is the required list of
                  channel names to subscribe to.
                required: true
                properties:
                  - name: channels
                    type: array
                    required: true
                    properties:
                      - name: item
                        type: string
                        required: false
        headers: []
        jsonPayloadSchema:
          type: object
          required:
            - id
            - method
            - params
          properties:
            headers:
              description: Non-standard; used by `auth/login`.
              type: *ref_1
              additionalProperties: true
              x-parser-schema-id: <anonymous-schema-16>
            id: &ref_3
              anyOf:
                - type: string
                  x-parser-schema-id: <anonymous-schema-17>
                - type: number
                  x-parser-schema-id: <anonymous-schema-18>
                - type: 'null'
                  x-parser-schema-id: <anonymous-schema-19>
              x-parser-schema-id: JsonRpcId
            method:
              type: string
              const: subscribe
              x-parser-schema-id: <anonymous-schema-20>
            params:
              description: >-
                Params for `subscribe`. `channels` is the required list of
                channel names to subscribe to.
              type: object
              required:
                - channels
              properties:
                channels:
                  type: array
                  items:
                    type: string
                    x-parser-schema-id: <anonymous-schema-22>
                  x-parser-schema-id: <anonymous-schema-21>
              x-parser-schema-id: SubscribeParams
          x-parser-schema-id: <anonymous-schema-15>
        title: Subscribe request
        description: >-
          Send to subscribe: list this channel's address (with the {param}
          segments filled, e.g. orderbook.ETH-PERP.10.20) in params.channels.
        example: |-
          {
            "id": 1,
            "method": "subscribe",
            "params": {
              "channels": [
                "orderbook.ETH-PERP.10.20"
              ]
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: subscribeRequest
      - &ref_9
        id: unsubscribeRequest
        payload:
          - name: unsubscribeRequest
            description: >-
              Send to unsubscribe: list the channel addresses to drop in
              params.channels, or omit it to unsubscribe from everything.
            type: object
            properties:
              - name: headers
                type: &ref_2
                  - object
                  - 'null'
                description: Non-standard; used by `auth/login`.
                required: false
              - name: id
                type: anyOf
                required: true
              - name: method
                type: string
                description: unsubscribe
                required: true
              - name: params
                type: object
                description: >-
                  Params for `unsubscribe`. `channels` is optional.


                  When omitted (or null) the connection unsubscribes from all
                  channels.
                required: true
                properties:
                  - name: channels
                    type: &ref_4
                      - array
                      - 'null'
                    required: false
        headers: []
        jsonPayloadSchema:
          type: object
          required:
            - id
            - method
            - params
          properties:
            headers:
              description: Non-standard; used by `auth/login`.
              type: *ref_2
              additionalProperties: true
              x-parser-schema-id: <anonymous-schema-24>
            id: *ref_3
            method:
              type: string
              const: unsubscribe
              x-parser-schema-id: <anonymous-schema-25>
            params:
              description: >-
                Params for `unsubscribe`. `channels` is optional.


                When omitted (or null) the connection unsubscribes from all
                channels.
              type: object
              properties:
                channels:
                  default: null
                  type: *ref_4
                  items:
                    type: string
                    x-parser-schema-id: <anonymous-schema-27>
                  x-parser-schema-id: <anonymous-schema-26>
              x-parser-schema-id: UnsubscribeParams
          x-parser-schema-id: <anonymous-schema-23>
        title: Unsubscribe request
        description: >-
          Send to unsubscribe: list the channel addresses to drop in
          params.channels, or omit it to unsubscribe from everything.
        example: |-
          {
            "method": "<string>",
            "params": {}
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: unsubscribeRequest
    bindings: []
    extensions: *ref_5
sendOperations:
  - *ref_6
receiveOperations:
  - *ref_7
sendMessages:
  - *ref_8
  - *ref_9
receiveMessages:
  - *ref_10
extensions:
  - id: x-parser-unique-object-id
    value: spotFeed
securitySchemes: []

````

## Related topics

- [Subscriptions](/subscriptions.md)
- [Migration skill for your coding agent](/migrating/breaking-changes.md)
- [Get latest signed oracle feeds](/api-reference/market-data/get-latest-signed-oracle-feeds.md)
