{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cspriceapi-com/json-schema/cspriceapi-com-buff-float-ranged-response-schema.json",
  "title": "BuffFloatRangedResponse",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cspriceapi-com-float-ranged-api-openapi.yml#/components/schemas/BuffFloatRangedResponse",
  "allOf": [
    {
      "$ref": "#/$defs/BaseWrapper"
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BuffFloatRangedItem"
          }
        },
        "source": {
          "type": "string",
          "enum": [
            "Buff163"
          ]
        }
      },
      "required": [
        "data"
      ]
    }
  ],
  "$defs": {
    "BaseWrapper": {
      "type": "object",
      "description": "Envelope fields returned by every `GET /v1/prices/*` response.",
      "properties": {
        "source": {
          "type": "string",
          "description": "Human-readable marketplace identifier."
        },
        "requestor": {
          "type": "string",
          "format": "email",
          "description": "Email address associated with the API key making the call."
        },
        "plan": {
          "type": "string",
          "description": "Plan of the API key (e.g. `free`, `pro`, `enterprise`)."
        },
        "timestamp": {
          "allOf": [
            {
              "$ref": "#/$defs/UpdatedAt"
            }
          ],
          "description": "Server time when this response was produced."
        }
      },
      "required": [
        "source",
        "timestamp"
      ]
    },
    "BuffFloatRangedItem": {
      "type": "object",
      "properties": {
        "market_hash_name": {
          "type": "string"
        },
        "goods_id": {
          "type": "integer",
          "description": "Buff goods_id."
        },
        "float_range": {
          "type": [
            "string",
            "null"
          ],
          "description": "Float bucket, e.g. \"0.15-0.18\"; null = all floats."
        },
        "fade_range": {
          "type": [
            "string",
            "null"
          ],
          "description": "Fade % bucket, e.g. \"97-99\"; null = all fades."
        },
        "phase": {
          "type": [
            "string",
            "null"
          ],
          "description": "Doppler / Gamma Doppler phase."
        },
        "tier": {
          "type": [
            "string",
            "null"
          ],
          "description": "Pattern tier (\"T1\"–\"T10\")."
        },
        "count": {
          "type": "integer",
          "description": "Listings in this range."
        },
        "price_rmb": {
          "description": "Lowest listing in CNY, null when nothing is listed.",
          "oneOf": [
            {
              "$ref": "#/$defs/DecimalString"
            },
            {
              "type": "null"
            }
          ]
        },
        "avg_top10_price_rmb": {
          "description": "Average of the 10 cheapest listings in CNY.",
          "oneOf": [
            {
              "$ref": "#/$defs/DecimalString"
            },
            {
              "type": "null"
            }
          ]
        },
        "updated_at": {
          "$ref": "#/$defs/UpdatedAt"
        }
      }
    },
    "DecimalString": {
      "type": "string",
      "description": "Fixed-point decimal value serialized as a string (preserves precision\nacross languages). Parse with an arbitrary-precision decimal library;\ndo **not** parse as a native float.\n",
      "pattern": "^-?\\d+(\\.\\d+)?$"
    },
    "UpdatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "ISO-8601 UTC timestamp (millisecond precision)."
    }
  }
}