{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hitbtc/json-schema/hitbtc-market-data-funding-history-schema.json",
  "title": "Funding history",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hitbtc-funding-history-api-openapi.yml#/components/schemas/marketData_FundingHistory",
  "type": "object",
  "required": [
    "timestamp",
    "funding_rate",
    "avg_premium_index",
    "next_funding_time",
    "interest_rate"
  ],
  "properties": {
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time of the clearing."
    },
    "funding_rate": {
      "type": "string",
      "description": "Percentage of the contract mark value paid after the end of the current funding interval."
    },
    "avg_premium_index": {
      "type": "string",
      "description": "Time-weighted average over premium indexes for *previous* funding period. Used during calculation of `funding_rate` for adjusting it to the deviation of contract market price from the mark price."
    },
    "next_funding_time": {
      "type": "string",
      "description": "Date and time of the next clearing."
    },
    "interest_rate": {
      "type": "string",
      "description": "Contract interest rate for one funding period."
    }
  }
}