{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/chainflip-broker-io/json-schema/chainflip-broker-io-chainflip-baas-fees-fees-response-schema.json",
  "title": "ChainflipBaas.Fees.FeesResponse",
  "description": "The broker fees you have earned so far, per asset id, after the BaaS operating fee.",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chainflip-broker-io-openapi.json#/components/schemas/ChainflipBaas.Fees.FeesResponse",
  "type": "object",
  "properties": {
    "earnedFees": {
      "type": "object",
      "additionalProperties": {
        "type": "number",
        "format": "double"
      },
      "description": "Earned broker fees per asset."
    },
    "earnedFeesNative": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Earned broker fees per asset in native units."
    },
    "byProvider": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "$ref": "#/$defs/ChainflipBaas.Fees.FeesResponse"
      },
      "description": "The same fees per provider, keyed by provider (e.g. `chainflip`).",
      "readOnly": true
    }
  },
  "additionalProperties": false,
  "$defs": {
    "ChainflipBaas.Fees.FeesResponse": {
      "type": "object",
      "properties": {
        "earnedFees": {
          "type": "object",
          "additionalProperties": {
            "type": "number",
            "format": "double"
          },
          "description": "Earned broker fees per asset."
        },
        "earnedFeesNative": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Earned broker fees per asset in native units."
        },
        "byProvider": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": {
            "$ref": "#/$defs/ChainflipBaas.Fees.FeesResponse"
          },
          "description": "The same fees per provider, keyed by provider (e.g. `chainflip`).",
          "readOnly": true
        }
      },
      "additionalProperties": false,
      "description": "The broker fees you have earned so far, per asset id, after the BaaS operating fee."
    }
  }
}