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

# Ticker



## AsyncAPI

````yaml asyncapi.json ticker
id: ticker
title: Ticker
description: ''
servers:
  - id: production
    protocol: wss
    host: api.tickdb.ai
    bindings: []
    variables: []
address: /v1/realtime
parameters: []
bindings: []
operations:
  - &ref_3
    id: subscribeToTicker
    title: Subscribe to ticker
    type: send
    messages:
      - &ref_5
        id: tickerData
        contentType: application/json
        payload:
          - name: Ticker Data
            description: Real-time ticker data pushed from server
            type: object
            properties:
              - name: cmd
                type: string
                description: Message type
                required: true
              - name: data
                type: object
                required: true
                properties:
                  - name: symbol
                    type: string
                    description: Trading symbol
                    required: true
                  - name: type
                    type: string
                    description: Symbol type
                    enumValues:
                      - stock
                      - indices
                      - crypto
                      - forex
                      - futures
                    required: false
                  - name: last_price
                    type: string
                    description: Latest trade price
                    required: true
                  - name: timestamp
                    type: integer
                    description: Unix timestamp in milliseconds
                    required: true
        headers: []
        jsonPayloadSchema:
          type: object
          additionalProperties: false
          properties:
            cmd:
              type: string
              const: ticker
              description: Message type
              x-parser-schema-id: <anonymous-schema-9>
            data:
              type: object
              additionalProperties: false
              properties:
                symbol:
                  type: string
                  example: AAPL.US
                  description: Trading symbol
                  x-parser-schema-id: <anonymous-schema-11>
                type:
                  type: string
                  enum:
                    - stock
                    - indices
                    - crypto
                    - forex
                    - futures
                  description: Symbol type
                  x-parser-schema-id: <anonymous-schema-12>
                last_price:
                  type: string
                  example: '150.25'
                  description: Latest trade price
                  x-parser-schema-id: <anonymous-schema-13>
                timestamp:
                  type: integer
                  example: 1703123456789
                  description: Unix timestamp in milliseconds
                  x-parser-schema-id: <anonymous-schema-14>
              required:
                - symbol
                - last_price
                - timestamp
              x-parser-schema-id: <anonymous-schema-10>
          required:
            - cmd
            - data
          x-parser-schema-id: <anonymous-schema-8>
        title: Ticker Data
        description: Real-time ticker data pushed from server
        example: |-
          {
            "cmd": "<string>",
            "data": {
              "symbol": "<string>",
              "type": "<string>",
              "last_price": "<string>",
              "timestamp": 123
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: tickerData
    bindings: []
    extensions: &ref_1
      - id: x-parser-unique-object-id
        value: ticker
  - &ref_2
    id: receiveTickerData
    title: Receive ticker data
    type: receive
    messages:
      - &ref_4
        id: subscribeRequest
        contentType: application/json
        payload:
          - name: Subscribe/Unsubscribe to Ticker
            description: >-
              Subscribe or unsubscribe to real-time ticker updates for one or
              multiple symbols
            type: object
            properties:
              - name: cmd
                type: string
                description: Command type (subscribe or unsubscribe)
                enumValues:
                  - subscribe
                  - unsubscribe
                required: true
              - name: data
                type: object
                required: true
                properties:
                  - name: channel
                    type: string
                    description: Channel name
                    enumValues:
                      - ticker
                      - depth
                      - trade
                    required: true
                  - name: symbols
                    type: array
                    description: List of trading symbols to subscribe/unsubscribe
                    examples: &ref_0
                      - AAPL.US
                      - 700.HK
                      - EURUSD
                      - XAUUSD
                      - BTCUSDT
                      - IC2606
                    required: true
                    properties:
                      - name: item
                        type: string
                        required: false
                  - name: type
                    type: string
                    description: >-
                      Symbol type, optional. Not required when the symbol is
                      unambiguous; if the server returns an AMBIGUOUS_SYMBOL
                      error, pass the value as indicated
                    enumValues:
                      - stock
                      - indices
                      - crypto
                      - forex
                      - futures
                    required: false
        headers: []
        jsonPayloadSchema:
          type: object
          additionalProperties: false
          properties:
            cmd:
              type: string
              enum:
                - subscribe
                - unsubscribe
              description: Command type (subscribe or unsubscribe)
              x-parser-schema-id: <anonymous-schema-2>
            data:
              type: object
              additionalProperties: false
              properties:
                channel:
                  type: string
                  enum:
                    - ticker
                    - depth
                    - trade
                  default: ticker
                  description: Channel name
                  x-parser-schema-id: <anonymous-schema-4>
                symbols:
                  type: array
                  items:
                    type: string
                    x-parser-schema-id: <anonymous-schema-6>
                  examples: *ref_0
                  description: List of trading symbols to subscribe/unsubscribe
                  x-parser-schema-id: <anonymous-schema-5>
                type:
                  type: string
                  enum:
                    - stock
                    - indices
                    - crypto
                    - forex
                    - futures
                  description: >-
                    Symbol type, optional. Not required when the symbol is
                    unambiguous; if the server returns an AMBIGUOUS_SYMBOL
                    error, pass the value as indicated
                  x-parser-schema-id: <anonymous-schema-7>
              required:
                - channel
                - symbols
              x-parser-schema-id: <anonymous-schema-3>
          required:
            - cmd
            - data
          x-parser-schema-id: <anonymous-schema-1>
        title: Subscribe/Unsubscribe to Ticker
        description: >-
          Subscribe or unsubscribe to real-time ticker updates for one or
          multiple symbols
        example: No examples found
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: subscribeRequest
    bindings: []
    extensions: *ref_1
sendOperations:
  - *ref_2
receiveOperations:
  - *ref_3
sendMessages:
  - *ref_4
receiveMessages:
  - *ref_5
extensions:
  - id: x-parser-unique-object-id
    value: ticker
securitySchemes:
  - id: apiKey
    name: api_key
    type: httpApiKey
    in: query
    extensions: []

````