{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/trading212/refs/heads/main/json-schema/AccountBucketResultResponse.json",
  "title": "AccountBucketResultResponse",
  "description": "Trading 212 AccountBucketResultResponse schema",
  "properties": {
    "cash": {
      "description": "Amount of money put into the pie in account currency",
      "type": "number"
    },
    "dividendDetails": {
      "$ref": "https://raw.githubusercontent.com/api-evangelist/trading212/refs/heads/main/json-schema/DividendDetails"
    },
    "id": {
      "format": "int64",
      "type": "integer"
    },
    "progress": {
      "description": "Progress of the pie based on the set goal",
      "example": 0.5,
      "type": "number"
    },
    "result": {
      "$ref": "https://raw.githubusercontent.com/api-evangelist/trading212/refs/heads/main/json-schema/InvestmentResult"
    },
    "status": {
      "description": "Status of the pie based on the set goal",
      "enum": [
        "AHEAD",
        "ON_TRACK",
        "BEHIND"
      ],
      "type": "string"
    }
  },
  "type": "object"
}
