bayesline.api.equity.PortfolioHoldingsAssetTearsheet#

pydantic model bayesline.api.equity.PortfolioHoldingsAssetTearsheet#

Tearsheet for a single asset’s holdings, or for a whole portfolio’s.

Show JSON schema
{
   "title": "PortfolioHoldingsAssetTearsheet",
   "description": "Tearsheet for a single asset's holdings, or for a whole portfolio's.",
   "type": "object",
   "properties": {
      "asset_id": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "title": "Asset Id"
      },
      "asset_id_type": {
         "default": "bayesid",
         "enum": [
            "bayesid",
            "portfolio_id"
         ],
         "title": "Asset Id Type",
         "type": "string"
      },
      "asset_name": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "title": "Asset Name"
      },
      "input_asset_id": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "title": "Input Asset Id"
      },
      "input_asset_id_type": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "title": "Input Asset Id Type"
      },
      "portfolio_path": {
         "items": {
            "type": "string"
         },
         "title": "Portfolio Path",
         "type": "array"
      },
      "dates": {
         "items": {
            "format": "date",
            "type": "string"
         },
         "title": "Dates",
         "type": "array"
      },
      "navs": {
         "items": {
            "type": "number"
         },
         "title": "Navs",
         "type": "array"
      },
      "share_qtys": {
         "items": {
            "type": "number"
         },
         "title": "Share Qtys",
         "type": "array"
      },
      "weights": {
         "items": {
            "type": "number"
         },
         "title": "Weights",
         "type": "array"
      },
      "active_weights": {
         "items": {
            "type": "number"
         },
         "title": "Active Weights",
         "type": "array"
      }
   },
   "required": [
      "asset_id",
      "asset_name",
      "input_asset_id",
      "input_asset_id_type",
      "dates",
      "navs",
      "share_qtys",
      "weights",
      "active_weights"
   ]
}

Fields:
  • active_weights (list[float])

  • navs (list[float])

  • share_qtys (list[float])

  • weights (list[float])

field navs: list[float] [Required]#
field share_qtys: list[float] [Required]#
field weights: list[float] [Required]#
field active_weights: list[float] [Required]#