{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cspriceapi-com/json-schema/cspriceapi-com-buff-float-buyorder-response-schema.json",
  "title": "BuffFloatBuyorderResponse",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cspriceapi-com-buyorder-prices-api-openapi.yml#/components/schemas/BuffFloatBuyorderResponse",
  "allOf": [
    {
      "$ref": "#/$defs/BaseWrapper"
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BuffFloatBuyorderItem"
          }
        },
        "meta": {
          "type": "object",
          "properties": {
            "count": {
              "type": "integer"
            },
            "ranges": {
              "type": "integer"
            },
            "currency": {
              "type": "string",
              "enum": [
                "CNY"
              ]
            },
            "filters": {
              "type": "object"
            },
            "updated_at": {
              "type": [
                "string",
                "null"
              ],
              "format": "date-time"
            }
          }
        },
        "source": {
          "type": "string",
          "enum": [
            "Buff163"
          ]
        }
      },
      "required": [
        "data",
        "meta"
      ]
    }
  ],
  "$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"
      ]
    },
    "BuffFloatBuyorderItem": {
      "type": "object",
      "properties": {
        "goods_id": {
          "type": "integer"
        },
        "market_hash_name": {
          "type": "string"
        },
        "best_price_rmb": {
          "oneOf": [
            {
              "$ref": "#/$defs/DecimalString"
            },
            {
              "type": "null"
            }
          ]
        },
        "best_order_count": {
          "type": "integer"
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "ranges": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BuffFloatBuyorderRange"
          }
        }
      }
    },
    "BuffFloatBuyorderRange": {
      "type": "object",
      "description": "Highest Buff buy order for items in one range.",
      "properties": {
        "float_range": {
          "type": "string",
          "description": "Float bucket or \"any\"."
        },
        "min_float": {
          "type": [
            "number",
            "null"
          ]
        },
        "max_float": {
          "type": [
            "number",
            "null"
          ]
        },
        "fade_range": {
          "type": "string",
          "description": "Fade % bucket or \"any\"."
        },
        "min_fade": {
          "type": [
            "number",
            "null"
          ]
        },
        "max_fade": {
          "type": [
            "number",
            "null"
          ]
        },
        "phase": {
          "type": [
            "string",
            "null"
          ]
        },
        "tier": {
          "type": [
            "string",
            "null"
          ]
        },
        "price_rmb": {
          "$ref": "#/$defs/DecimalString"
        },
        "order_count": {
          "type": "integer",
          "description": "Buy orders in this range."
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    },
    "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)."
    }
  }
}