{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/debridge-com/json-schema/debridge-com-daily-satistic-response-dto-schema.json",
  "title": "DailySatisticResponseDTO",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/debridge-com-satistics-api-openapi.yml#/components/schemas/DailySatisticResponseDTO",
  "type": "object",
  "properties": {
    "dailyData": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/OrdersSatisticsDailyDataDTO"
      },
      "description": "Statistical data for every requested date for every chain"
    },
    "dailyDataCumulative": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/OrdersSatisticsDailyDataDTO"
      },
      "description": "Cumulative statistical data for every requested date for every chain"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "IntPropertyDTO": {
      "type": "object",
      "properties": {
        "bytesValue": {
          "type": [
            "string",
            "null"
          ],
          "description": "Binary representation of the property value",
          "format": "byte"
        },
        "bytesArrayValue": {
          "type": [
            "string",
            "null"
          ],
          "description": "Bytes array representation of the value",
          "readOnly": true
        },
        "bigIntegerValue": {
          "type": [
            "number",
            "null"
          ],
          "description": "Integer representation of the property value",
          "format": "int64",
          "readOnly": true
        },
        "stringValue": {
          "type": [
            "string",
            "null"
          ],
          "description": "String representation of the property value",
          "readOnly": true
        }
      },
      "additionalProperties": false
    },
    "OrdersSatisticsDailyDataDTO": {
      "type": "object",
      "properties": {
        "giveChainId": {
          "$ref": "#/$defs/IntPropertyDTO"
        },
        "takeChainId": {
          "$ref": "#/$defs/IntPropertyDTO"
        },
        "date": {
          "type": "integer",
          "description": "Start of day for which the statistics has been collected",
          "format": "int64"
        },
        "createdOrdersCount": {
          "type": "integer",
          "description": "Number of created orders",
          "format": "int32"
        },
        "fulfilledOrdersCount": {
          "type": "integer",
          "description": "Number of fulfilled orders",
          "format": "int32"
        },
        "totalAmountGivenUsd": {
          "type": "number",
          "description": "Total Give amount USD equivalent",
          "format": "double"
        },
        "totalAmountTakenUsd": {
          "type": "number",
          "description": "Total Take amount USD equivalent",
          "format": "double"
        },
        "totalProtocolFeeUsd": {
          "type": "number",
          "description": "Total FixFee+TransferFee USD equivalent",
          "format": "double"
        },
        "uniqueOrderCreators": {
          "type": "integer",
          "description": "Number of unique users that created orders that day",
          "format": "int32"
        },
        "newOrderCreators": {
          "type": "integer",
          "description": "Number of new users, that created orders that day",
          "format": "int32"
        }
      },
      "additionalProperties": false
    }
  }
}