{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tickdb-ai/json-schema/tickdb-ai-full-market-ticker-response-schema.json",
  "title": "FullMarketTickerResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tickdb-ai-market-api-openapi.yml#/components/schemas/FullMarketTickerResponse",
  "type": "object",
  "required": [
    "code",
    "message",
    "data"
  ],
  "additionalProperties": false,
  "properties": {
    "code": {
      "type": "integer"
    },
    "message": {
      "type": "string"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FullMarketTicker"
      }
    }
  },
  "$defs": {
    "FullMarketTicker": {
      "type": "object",
      "required": [
        "symbol",
        "last_price",
        "timestamp"
      ],
      "additionalProperties": false,
      "properties": {
        "symbol": {
          "type": "string",
          "description": "交易产品代码。"
        },
        "name": {
          "type": "string",
          "description": "产品名称；名称信息可用时返回。"
        },
        "type": {
          "type": "string",
          "enum": [
            "stock",
            "indices"
          ],
          "description": "产品类型。"
        },
        "category": {
          "type": "string",
          "enum": [
            "sh_stock",
            "sz_stock",
            "bj_stock",
            "etf",
            "cn_index",
            "cn_bond"
          ],
          "description": "A股产品细分类别；仅A股全量行情返回。"
        },
        "last_price": {
          "type": "string",
          "description": "最新成交价。"
        },
        "open": {
          "type": "string",
          "description": "当日开盘价；数据不可用时不返回。"
        },
        "prev_close": {
          "type": "string",
          "description": "上一交易日收盘价；数据不可用时不返回。"
        },
        "volume_24h": {
          "type": "string",
          "description": "当日累计成交量；数据不可用时不返回。"
        },
        "quote_volume_24h": {
          "type": "string",
          "description": "当日累计成交额；数据不可用时不返回。"
        },
        "high_24h": {
          "type": "string",
          "description": "当日最高价；数据不可用时不返回。"
        },
        "low_24h": {
          "type": "string",
          "description": "当日最低价；数据不可用时不返回。"
        },
        "price_change_24h": {
          "type": "string",
          "description": "相对昨收的价格变化；数据不可用时不返回。"
        },
        "price_change_percent_24h": {
          "type": "string",
          "description": "相对昨收的价格变化百分比；数据不可用时不返回。"
        },
        "timestamp": {
          "type": "integer",
          "format": "int64",
          "description": "Unix 时间戳，单位为毫秒。"
        }
      }
    }
  }
}