{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/trading212/refs/heads/main/json-schema/HistoryTransactionItem.json",
  "title": "HistoryTransactionItem",
  "description": "Trading 212 HistoryTransactionItem schema",
  "properties": {
    "amount": {
      "description": "Amount in the currency of the transaction",
      "type": "number"
    },
    "currency": {
      "description": "Currency of the transaction",
      "type": "string"
    },
    "dateTime": {
      "format": "date-time",
      "type": "string"
    },
    "reference": {
      "description": "ID",
      "type": "string"
    },
    "type": {
      "enum": [
        "WITHDRAW",
        "DEPOSIT",
        "FEE",
        "TRANSFER"
      ],
      "type": "string"
    }
  },
  "type": "object"
}
