Moneyhub · Schema

HoldingWithMatchesAndHistory

PaymentsUnited KingdomOpen BankingOpen FinanceAccount-to-AccountPayment InitiationData AggregationAISPPISPFintech

Properties

Name Type Description
id string The id of the holding
date string Date of the valuation
history array
matched array
codes array
name string
quantity number The total number of units. This value reflects the quantity of the holding in its local currency context and is used to calculate the total value as unitPrice * quantity.
total object
unitPrice object
costBasis number In a one-off security purchase, the cost basis is the quantity acquired multiplied by the price paid per unit plus any commission. In the event the same position is acquired in different lots on diffe
currency string The currency of the holding
View JSON Schema on GitHub

JSON Schema

moneyhub-holding-with-matches-and-history-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/moneyhub/main/json-schema/moneyhub-holding-with-matches-and-history-schema.json",
  "title": "HoldingWithMatchesAndHistory",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/moneyhub-holdings-api-openapi.yml#/components/schemas/HoldingWithMatchesAndHistory",
  "additionalProperties": false,
  "type": "object",
  "properties": {
    "id": {
      "description": "The id of the holding",
      "type": "string"
    },
    "date": {
      "description": "Date of the valuation",
      "format": "date",
      "type": "string"
    },
    "history": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "total": {
            "properties": {
              "value": {
                "description": "The value of the total in minor units of the currency, eg. pennies for GBP.",
                "type": "number"
              },
              "currency": {
                "description": "The currency of the total.",
                "type": "string"
              }
            },
            "required": [
              "value",
              "currency"
            ],
            "type": "object"
          },
          "unitPrice": {
            "properties": {
              "value": {
                "description": "The value of the unit price in minor units of the currency, eg. pennies for GBP.",
                "type": "number"
              },
              "currency": {
                "description": "The currency of the unit price.",
                "type": "string"
              }
            },
            "required": [
              "value",
              "currency"
            ],
            "type": "object"
          },
          "costBasis": {
            "description": "In a one-off security purchase, the cost basis is the quantity acquired multiplied by the price paid per unit plus any commission. In the event the same position is acquired in different lots on different days at different prices, the sum total of the cost incurred is divided by the total units acquired to arrive at the average cost basis.",
            "type": "number"
          },
          "quantity": {
            "description": "The total number of units held for this security at the specified historical date.",
            "type": "number"
          },
          "date": {
            "description": "Date of the valuation",
            "format": "date",
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "matched": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "isin": {
            "description": "The ISIN code of the match",
            "type": "string"
          },
          "name": {
            "description": "The name of the match",
            "type": "string"
          },
          "score": {
            "type": "number"
          },
          "priceGBP": {
            "description": "The unit price of the holding match converted to GBP. The unitPrice is converted from the local currency (e.g. USD) to GBP on a daily basis during our import of holdings data.",
            "type": "number"
          },
          "price": {
            "properties": {
              "value": {
                "description": "The unit price in minor units of the currency (e.g. pence for GBP)",
                "type": "number"
              },
              "currency": {
                "description": "The currency of the matched holding",
                "type": "string"
              }
            },
            "required": [
              "value",
              "currency"
            ],
            "type": "object"
          },
          "date": {
            "description": "Date of the valuation",
            "format": "date",
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "codes": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "type": {
            "enum": [
              "ISIN",
              "SEDOL",
              "MEX"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "name": {
      "type": "string"
    },
    "quantity": {
      "description": "The total number of units. This value reflects the quantity of the holding in its local currency context and is used to calculate the total value as unitPrice * quantity.",
      "type": "number"
    },
    "total": {
      "properties": {
        "value": {
          "description": "The value of the total in minor units of the currency, eg. pennies for GBP.",
          "type": "number"
        },
        "currency": {
          "description": "The currency of the total.",
          "type": "string"
        }
      },
      "required": [
        "value",
        "currency"
      ],
      "type": "object"
    },
    "unitPrice": {
      "properties": {
        "value": {
          "description": "The price per unit of the holding. Provided by the holdings data source in its original currency.",
          "type": "number"
        },
        "currency": {
          "description": "The currency of the unit price.",
          "type": "string"
        }
      },
      "required": [
        "value",
        "currency"
      ],
      "type": "object"
    },
    "costBasis": {
      "description": "In a one-off security purchase, the cost basis is the quantity acquired multiplied by the price paid per unit plus any commission. In the event the same position is acquired in different lots on different days at different prices, the sum total of the cost incurred is divided by the total units acquired to arrive at the average cost basis.",
      "type": "number"
    },
    "currency": {
      "description": "The currency of the holding",
      "type": "string"
    }
  },
  "required": [
    "name",
    "quantity",
    "unitPrice",
    "total",
    "codes",
    "history",
    "matched",
    "id"
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/moneyhub-holding-with-matches-and-history"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.