PowerInvestmentsOpenAPIModels
The capacity-expansion domain: candidate technologies, financial data, policy requirements, and the association rows binding a requirement to the entities subject to it.
PowerInvestmentsOpenAPIModels.AggregateTransportTechnology — Type
AggregateTransportTechnologyAn aggregated representation of a transmission interchange between two regions. Capacity is added in discrete units of unit_size, priced by a capital cost curve, and derated by a proportional line loss.
id: ID for individual component.name: Name of the component.available: Indicator of whether the component is connected and online (true) or disconnected, offline, or down (false).power_systems_type: Corresponding type to be used in PCM modeling.start_region: Start region for transport technology.end_region: End region for transport technology.capacity_limits: Allowable capacity for a transmission line. Units: MW.capital_costs: Capital and interconnection cost of adding new capacity to the transmission line (capital cost in USD/MW).line_loss: Transmission loss for each transport technology. Units: 1.unit_size: Used for integer investment decisions. Represents the rating capacity of individual new lines. Units: MW.financial_data: Struct containing relevant financial information for a technology.
PowerInvestmentsOpenAPIModels.CapacityReserveMargin — Type
CapacityReserveMarginPolicy requirement enforcing a minimum capacity reserve margin in the target year, such that (total_capacity - peak_demand) / peak_demand >= capacity_reserve_fraction.
id: ID for individual component.name: Name of the component.available: Indicator of whether the component is connected and online (true) or disconnected, offline, or down (false).target_year: Year in which this requirement is applied.capacity_reserve_fraction: Capacity reserve requirements, represented as a fraction of peak demand in a region. Units: 1.
PowerInvestmentsOpenAPIModels.CarbonCaps — Type
CarbonCapsPolicy requirement limiting the amount of carbon produced in the target year. The limit can be given either as a total mass of CO2 or as the carbon intensity of the portfolio, in mass of CO2 per MWh of electricity.
id: ID for individual component.name: Name of the component.available: Indicator of whether the component is connected and online (true) or disconnected, offline, or down (false).target_year: Year in which this requirement is applied.max_tons_mwh: Emission limit in terms of rate. Units: Mt/MWh.max_mtons: Emission limit in absolute values (million tonnes). Units: Mt.
PowerInvestmentsOpenAPIModels.CarbonTax — Type
CarbonTaxPolicy requirement defining an additional cost penalty per ton of CO2 produced in the eligible regions during the target year.
id: ID for individual component.name: Name of the component.available: Indicator of whether the component is connected and online (true) or disconnected, offline, or down (false).target_year: Year in which this requirement is applied.tax_dollars_per_ton: Cost penalty per ton of CO2 emitted by technologies in the eligible regions during the target year. Units: USD/t.
PowerInvestmentsOpenAPIModels.ColocatedSupplyStorageTechnology — Type
ColocatedSupplyStorageTechnologySupply technology co-located with storage behind a shared grid connection. The generation and storage portions are referenced by id (supply_technology and storage_technology); the inverter that couples them to the grid carries its own capacity limits, capital and operating costs, and efficiency.
id: ID for individual component.name: Name of the component.available: Indicator of whether the component is connected and online (true) or disconnected, offline, or down (false).power_systems_type: Corresponding type to be used in PCM modeling.region: Location where the component applies. Can be a zone or node.financial_data: Struct containing relevant financial information for a technology.supply_technology: The ID of the underlying supply technology (e.g., wind or solar) co-located with storage.storage_technology: The ID of the underlying storage technology co-located with the supply technology.inverter_capacity_limits: Limits on inverter capacity. Units: MW.capital_costs_inverter: Capital and interconnection cost for investing in inverter capacity (capital cost in USD/MW).operation_costs_inverter: Operational costs for using inverter in co-located systems. Units: USD/MWh.inverter_efficiency: Efficiency of AC to DC conversion of inverter. Units: 1.inverter_supply_ratio: Ratio of generation capacity to grid connection capacity. Units: 1.
PowerInvestmentsOpenAPIModels.ColocatedSupplyStorageTechnologyOperationCostsInverter — Type
ColocatedSupplyStorageTechnologyOperationCostsInverterOperational costs for using inverter in co-located systems. Units: USD/MWh.
PowerInvestmentsOpenAPIModels.DemandRequirement — Type
DemandRequirementDemand requirements for a region. New demand enters at a stated peak in its construction year and scales forward by a growth rate; value_of_lost_load and unserved_demand_curve price whatever portion goes unserved.
id: ID for individual component.name: Name of the component.available: Indicator of whether the component is connected and online (true) or disconnected, offline, or down (false).power_systems_type: Corresponding type to be used in PCM modeling.conformity: Indicator of how the demand requirement should conform to the load profile of existing technologies in the system. Should only be used for new demand requirements.growth_rate: The annual growth rate of the demand requirement, used to scale present-day loads into future projections. Should only be used for conforming loads. Units: 1.new_demand_mw: The value of the peak demand to be used for new DemandRequirements. Units: MW.new_construction_year: The year in which the new demand requirement will be installed. Should only be used for new demand requirements.region: Location where the component applies. Can be a zone or node.value_of_lost_load: Value of unserved load. Units: USD/MWh.unserved_demand_curve: Piecewise curve to scale the cost of unserved load based on the value of lost load. Units: USD/MWh.
PowerInvestmentsOpenAPIModels.DemandRequirementUnservedDemandCurve — Type
DemandRequirementUnservedDemandCurvePiecewise curve to scale the cost of unserved load based on the value of lost load. Units: USD/MWh.
PowerInvestmentsOpenAPIModels.DemandSideTechnology — Type
DemandSideTechnologyDemand-side technology such as an electric vehicle fleet or a hydrogen electrolyzer. Its flexibility is described by how far demand may be delayed or advanced, how much of it may be curtailed, and the cost and energy losses of doing either.
id: ID for individual component.name: Name of the component.available: Indicator of whether the component is connected and online (true) or disconnected, offline, or down (false).region: Location where the component applies. Can be a zone or node.power_systems_type: Corresponding type to be used in PCM modeling.technology_efficiency: MWh of electricity per unit of output. Ex: MWh per ton of hydrogen for electrolyzers. Units: 1.price_per_unit: Price or value per unit of output. Ex: USD per ton of hydrogen for electrolyzers. Units: USD/t.min_power: Minimum operation of demandside unit as a fraction of peak demand. Units: 1.peak_demand_mw: Peak demand value in MW. Units: MW.max_demand_delay: Maximum number of minutes that demand can be deferred or delayed (minutes). Units: min.max_demand_advance: Maximum number of minutes that demand can be scheduled in advance of the original schedule (minutes). Units: min.demand_energy_efficiency: Energy efficiency associated with time shifting demand. Represents energy losses due to time shifting. Units: 1.shift_variable_cost: Variable operation and maintenance costs associated with flexible demand deferral/advancement. Units: USD/MWh.curtailment_cost: Energy cost of curtailed demand, USD per MWh. Units: USD/MWh.max_demand_curtailment: Maximum fraction of demand that can be curtailed. Units: 1.
PowerInvestmentsOpenAPIModels.DemandSideTechnologyCurtailmentCost — Type
DemandSideTechnologyCurtailmentCostEnergy cost of curtailed demand, USD per MWh. Units: USD/MWh.
PowerInvestmentsOpenAPIModels.DemandSideTechnologyPricePerUnit — Type
DemandSideTechnologyPricePerUnitPrice or value per unit of output. Ex: USD per ton of hydrogen for electrolyzers. Units: USD/t.
PowerInvestmentsOpenAPIModels.DemandSideTechnologyShiftVariableCost — Type
DemandSideTechnologyShiftVariableCostVariable operation and maintenance costs associated with flexible demand deferral/advancement. Units: USD/MWh.
PowerInvestmentsOpenAPIModels.EnergyShareRequirements — Type
EnergyShareRequirementsPolicy requirement that the total generation of the eligible technologies be at least a pre-determined fraction of the total annual demand across the eligible zones in the target year.
id: ID for individual component.name: Name of the component.available: Indicator of whether the component is connected and online (true) or disconnected, offline, or down (false).target_year: Year in which this requirement is applied.generation_fraction_requirement: Fraction of total annual demand across all eligible zones that needs to be met by eligible resources. Units: 1.
PowerInvestmentsOpenAPIModels.ExistingDevices — Type
ExistingDevicesSupplemental attribute mapping a technology in the portfolio to the existing system — for example, the list of existing generators that correspond to one supply technology.
id: ID for individual component.existing_devices: List of individual existing devices to map to a specific technology in the portfolio.
PowerInvestmentsOpenAPIModels.HourlyMatching — Type
HourlyMatchingPolicy requirement that the qualified demand-side technologies have their demand met by an equal amount of generation from qualified supply in every hour, such that sum(P)_qualified_supply >= sum(D)_qualified_demand.
id: ID for individual component.name: Name of the component.available: Indicator of whether the component is connected and online (true) or disconnected, offline, or down (false).
PowerInvestmentsOpenAPIModels.MaximumCapacityRequirements — Type
MaximumCapacityRequirementsPolicy requirement that the total capacity of all eligible technologies in the target year be less than the specified limit in MW.
id: ID for individual component.name: Name of the component.available: Indicator of whether the component is connected and online (true) or disconnected, offline, or down (false).target_year: Year in which this requirement is applied.max_capacity_mw: Maximum total capacity across all eligible resources. Units: MW.
PowerInvestmentsOpenAPIModels.MinimumCapacityRequirements — Type
MinimumCapacityRequirementsPolicy requirement that the total capacity of all eligible technologies in the target year be greater than or equal to the specified minimum in MW.
id: ID for individual component.name: Name of the component.available: Indicator of whether the component is connected and online (true) or disconnected, offline, or down (false).target_year: Year in which this requirement is applied.min_capacity_mw: Minimum total capacity across all eligible resources. Units: MW.
PowerInvestmentsOpenAPIModels.NodalACTransportTechnology — Type
NodalACTransportTechnologyNodal representation of candidate AC transmission lines between two regions. Alongside capacity limits and a capital cost curve it carries the electrical characteristics of the line — resistance, series reactance, and voltage rating — and is added in discrete units of unit_size.
id: ID for individual component.name: Name of the component.available: Indicator of whether the component is connected and online (true) or disconnected, offline, or down (false).power_systems_type: Corresponding type to be used in PCM modeling.start_node: Start node for transport technology.end_node: End node for transport technology.capacity_limits: Allowable capacity for a transmission line. Units: MW.capital_costs: Capital and interconnection cost of adding new capacity to the nodal transmission line (capital cost in USD/MW).resistance: Technology resistance in Ohms. Units: ohm.voltage: Voltage rating of transmission line. Units: kV.unit_size: Used for integer investment decisions. Represents the rating capacity of individual new lines. Units: MW.reactance: Series reactance for a line. Units: ohm.financial_data: Struct containing relevant financial information for a technology.
PowerInvestmentsOpenAPIModels.NodalHVDCTransportTechnology — Type
NodalHVDCTransportTechnologyA nodal representation of candidate HVDC transmission lines between two regions, added in discrete units of unit_size and characterized by capacity limits, a capital cost curve, and a loss model expressed as a fraction of installed nameplate capacity.
id: ID for individual component.name: Name of the component.available: Indicator of whether the component is connected and online (true) or disconnected, offline, or down (false).power_systems_type: Corresponding type to be used in PCM modeling.start_node: Start node for transport technology.end_node: End node for transport technology.capacity_limits: Allowable capacity for a transmission line. Units: MW.capital_costs: Capital and interconnection cost of adding new capacity to the nodal transmission line (capital cost in USD/MW).line_loss: Loss model coefficients. Accepts a linear model with a constant loss and a proportional loss rate, or a Piecewise loss with N segments for different proportional losses. All terms are defined as fraction of installed nameplate capacity. Units: 1.unit_size: Used for integer investment decisions. Represents the rating capacity of individual new lines. Units: MW.financial_data: Struct containing relevant financial information for a technology.
PowerInvestmentsOpenAPIModels.NodalHVDCTransportTechnologyLineLoss — Type
NodalHVDCTransportTechnologyLineLossLoss model coefficients. Accepts a linear model with a constant loss and a proportional loss rate, or a Piecewise loss with N segments for different proportional losses. All terms are defined as fraction of installed nameplate capacity. Units: 1.
PowerInvestmentsOpenAPIModels.PortfolioDocument — Type
A whole serialized investment portfolio: candidate technologies, regional aggregations, and policy requirements bucketed by type name, the supplemental attributes describing them, the association tables linking them, the portfolio-wide financial parameters, and the names of the sidecar files holding the base power system and the time series values.
There is no document-level unit system or base power: every value is recorded in natural units. The only unit marker that ever appears is an embedded cost payload's own power_units (on a CostCurve or FuelCurve), intrinsic to that curve.
components values are concrete Vector{T}, so per-type iteration stays inferable behind a function barrier even though the field itself is untyped.
counter, component_types_by_id, requirements_membership, and source_schema_version (the schema version the document was read at, or this package's own for a new one; see get_source_schema_version) are build-time scaffolding and are not serialized: everything they hold is recoverable from the emitted rows. counter's ids come from one counter shared by every type; component_types_by_id lets add_supplemental_attribute! check membership in O(1) instead of rescanning components, and requirements_membership lets add_requirement_association! reject a duplicate (requirement_id, entity_id) pair in O(1) instead of rescanning requirements_associations — each add path is the sole writer of its cache, and portfolio_document_from_json rebuilds both once after a bulk load.
requirements_associations is a concrete Vector{RequirementAssociation}, a type this package defines (unlike SystemDocument's Operations-layer association tables): each row's requirement_id names the policy requirement and its entity_id names a member the requirement applies to. Callers construct the row and hand it to add_requirement_association!.
aggregation is the qualified type name of the regional aggregation the portfolio groups its regions by — a type identifier resolved by the consumer, not a component in the document, and required.
name, description, data_source, investment_schedule, base_system_file, and time_series_storage_file are nothing when the document omits them. base_system_file and time_series_storage_file are required keys with nullable values, so they are always emitted (as JSON null when absent); the rest are omitted entirely when nothing. investment_schedule is a model output — the schedule of capacity installations produced by solving the portfolio — absent from an inputs-only portfolio and carried opaquely, its internal shape not constrained here.
PowerInvestmentsOpenAPIModels.PortfolioDocument — Method
Build an empty portfolio document. aggregation is required — a portfolio always groups its regions by some aggregation type, and the schema marks the field required — so it is passed at construction rather than filled later.
PowerInvestmentsOpenAPIModels.RequirementAssociation — Type
RequirementAssociationLinks a policy requirement to one member subject to it. One record per (requirement, member) pair: the many-to-many relation between a requirement and the components it constrains is normalized here rather than carried as a list on either side, so each membership is an individually addressable row. The type of either side is resolved through the entity registry rather than duplicated here, matching the shape of SupplementalAttributeAssociation. requirement_id names the policy requirement (a CapacityReserveMargin, CarbonCap, EnergyShareRequirement, ...); entity_id names the member the requirement applies to, so no member-type discriminator is needed.
requirement_id: ID of the policy requirement the membership belongs to.entity_id: ID of the member the requirement applies to.
PowerInvestmentsOpenAPIModels.RetirementPotential — Type
RetirementPotentialSupplemental attribute defining which existing generators mapped to a supply technology are eligible for retirement, optionally with the year each was built and the year each is already scheduled to retire.
id: ID for individual component.eligible_generators: Names of individual generation units mapped to a technology that are eligible for retirement.planned_retirement_year: Optional dictionary to indicate the year in which the forced/planned retirement will occur.build_year: Optional dictionary to indicate the year in which existing generators in the base system were built.retirement_cost: Cost associated with retiring the eligible generators. Units: USD/MW.
PowerInvestmentsOpenAPIModels.RetirementPotentialBuildYear — Type
RetirementPotentialBuildYearOptional dictionary to indicate the year in which existing generators in the base system were built.
PowerInvestmentsOpenAPIModels.RetirementPotentialPlannedRetirementYear — Type
RetirementPotentialPlannedRetirementYearOptional dictionary to indicate the year in which the forced/planned retirement will occur.
PowerInvestmentsOpenAPIModels.RetirementPotentialRetirementCost — Type
RetirementPotentialRetirementCostCost associated with retiring the eligible generators. Units: USD/MW.
PowerInvestmentsOpenAPIModels.RetrofitPotential — Type
RetrofitPotentialSupplemental attribute defining which existing generators mapped to a supply technology are eligible for retrofit.
id: ID for individual component.eligible_generators: Names of individual generation units mapped to this technology that can be retrofitted.retrofit_fraction: Fraction of existing capacity that is eligible for retrofits. Units: 1.retrofit_cost: Cost associated with retrofitting the eligible generators. Units: USD/MW.
PowerInvestmentsOpenAPIModels.RetrofitPotentialRetrofitCost — Type
RetrofitPotentialRetrofitCostCost associated with retrofitting the eligible generators. Units: USD/MW.
PowerInvestmentsOpenAPIModels.StorageTechnology — Type
StorageTechnologyCandidate storage technology in a region. Charge capacity, discharge capacity, and energy capacity are added independently, each with its own capital cost, unit size, and capacity limits; charge and discharge efficiency, self-discharge losses, and limits on the ratio of energy to discharge capacity complete the description.
id: ID for individual component.name: Name of the component.available: Indicator of whether the component is connected and online (true) or disconnected, offline, or down (false).region: Location where the component applies. Can be a zone or node.power_systems_type: Corresponding type to be used in PCM modeling.min_discharge_fraction: Minimum discharge as a fraction of total discharge capacity. Units: 1.prime_mover_type: Prime mover for generator.storage_tech: Storage Technology Type.capital_costs: Capital and interconnection cost for investing in a storage technology's charge, discharge, and energy capacity (charge and discharge in USD/MW, energy in USD/MWh).operation_costs: Fixed and variable O&M costs for a storage technology. Units: USD/MWh.unit_size_discharge: Used for discrete investment decisions. Size of each unit of discharging capacity being built. Units: MW.unit_size_charge: Used for discrete investment decisions. Unit size of charging capacity. Units: MW.unit_size_energy: Used for discrete investment decisions. Size of each unit of energy capacity being built. Units: MWh.capacity_limits_charge: Allowable installed power capacity for charging of a storage technology, given either as a single bound applied to all capacity or as a mapping from a float key (stringified) to the bound that applies at that key. Units: MW.capacity_limits_discharge: Allowable installed power capacity for discharging of a storage technology, given either as a single bound applied to all capacity or as a mapping from a float key (stringified) to the bound that applies at that key. Units: MW.capacity_limits_energy: Allowable installed energy capacity for a storage technology, given either as a single bound applied to all capacity or as a mapping from a float key (stringified) to the bound that applies at that key. Units: MWh.duration_limits: Minimum and maximum duration limits (energy to discharge capacity ratio) for a storage technology (minutes). Units: min.efficiency: Efficiency of charging storage, fraction of total charge (in) and discharge (out) capacity. Units: 1.losses: Self-discharge of storage (fraction of energy stored per hour). Units: 1.lifetime: Maximum number of years a technology can be active once installed. Units: yr.financial_data: Struct containing relevant financial information for a technology.
PowerInvestmentsOpenAPIModels.StorageTechnologyCapacityLimitsCharge — Type
StorageTechnologyCapacityLimitsChargeAllowable installed power capacity for charging of a storage technology, given either as a single bound applied to all capacity or as a mapping from a float key (stringified) to the bound that applies at that key. Units: MW.
PowerInvestmentsOpenAPIModels.StorageTechnologyCapacityLimitsDischarge — Type
StorageTechnologyCapacityLimitsDischargeAllowable installed power capacity for discharging of a storage technology, given either as a single bound applied to all capacity or as a mapping from a float key (stringified) to the bound that applies at that key. Units: MW.
PowerInvestmentsOpenAPIModels.StorageTechnologyCapacityLimitsEnergy — Type
StorageTechnologyCapacityLimitsEnergyAllowable installed energy capacity for a storage technology, given either as a single bound applied to all capacity or as a mapping from a float key (stringified) to the bound that applies at that key. Units: MWh.
PowerInvestmentsOpenAPIModels.SupplyTechnology — Type
SupplyTechnologyCandidate generation technology for a region, representing either a thermal or a renewable generation technology. It carries the capital and operating cost of new capacity together with the operating characteristics the added units take on — capacity limits, ramp and time limits, outage derating, fuel, and start-up fuel use.
id: ID for individual component.name: Name of the component.available: Indicator of whether the component is connected and online (true) or disconnected, offline, or down (false).power_systems_type: Corresponding type to be used in PCM modeling.region: Location where the component applies. Can be a zone or node.prime_mover_type: Prime mover for generator.fuel: Fuel type according to IEA.cofire_start_limits: Minimum and maximum blending level of each fuel during start-up process for multi-fuel generator. Units: 1.cofire_level_limits: Minimum and maximum blending level of each fuel during normal generation process for multi-fuel generator. Units: 1.capital_costs: Capital and interconnection cost for investing in a technology (capital cost in USD/MW).operation_costs: Fixed and variable O&M costs for a technology. Units: USD/MWh.unit_size: Used for discrete investment decisions. Size of each unit being built. Units: MW.capacity_limits: Minimum and maximum allowable installed capacity for a technology, given either as a single bound applied to all capacity or as a mapping from a float key (stringified) to the bound that applies at that key. Units: MW.outage_factor: Planned and forced outage factors for a technology, each a fraction of total availability (the fraction of hours in a year the technology is unavailable).min_generation_fraction: Minimum generation as a fraction of total capacity. Units: 1.ramp_limits: Maximum decrease and increase in output between operation periods. Units: MW/min.time_limits: Minimum amount of time a resource has to stay in the committed or shutdown state (minutes). Units: min.start_fuel_mmbtu_per_mw: Startup fuel use per MW of nameplate capacity of each generator. Units: MMBtu/MW.lifetime: Maximum number of years a technology can be active once installed. Units: yr.financial_data: Struct containing relevant financial information for a technology.
PowerInvestmentsOpenAPIModels.SupplyTechnologyCapacityLimits — Type
SupplyTechnologyCapacityLimitsMinimum and maximum allowable installed capacity for a technology, given either as a single bound applied to all capacity or as a mapping from a float key (stringified) to the bound that applies at that key. Units: MW.
PowerInvestmentsOpenAPIModels.SupplyTechnologyOperationCosts — Type
SupplyTechnologyOperationCostsFixed and variable O&M costs for a technology. Units: USD/MWh.
PowerInvestmentsOpenAPIModels.TechnologyFinancialData — Type
TechnologyFinancialDataFinancial data for a candidate technology: the capital recovery period used to derive overnight capital cost from annualized investment cost, the dollar-year its cost data is reported in, the debt fraction, debt rate, return on equity, and tax rate that together set its cost of capital, and the discount, inflation, and interest rates used to convert its costs to a net present value in the model base year.
capital_recovery_period: Period over which capital costs are recovered for net present value calculations. Units: yr.technology_base_year: Year the technology's cost data is reported in. Costs are converted from this year to the model base year using the inflation rate.debt_fraction: Fraction of capital costs financed through debt. Units: 1.debt_rate: Interest rate on debt financing. Units: 1.return_on_equity: Required rate of return on equity financing. Units: 1.tax_rate: Tax rate applied to equity returns. Units: 1.discount_rate: Discount rate used to convert this technology's future costs to a net present value in the model base year. Units: 1.inflation_rate: Inflation rate used to convert this technology's costs from its base year to the model base year. Units: 1.interest_rate: Interest rate for financing calculations. Units: 1.
InfrastructureCoreOpenAPIModels.document_tree — Method
The document as a tree of plain JSON-safe values, ready for a single JSON encoding pass.
base_system_file and time_series_storage_file are required-but-nullable keys, so they are always present (as JSON null when absent); name/description/data_source/ investment_schedule are omitted entirely when unset; ext is always written. schema_version comes first, then the remaining keys sorted.
InfrastructureCoreOpenAPIModels.validate_document — Method
Check that the document is internally consistent: aggregation present, ids unique, every reference resolvable.
Run before writing, so a consumer can trust a document regardless of which producer wrote it. Converter coverage is deliberately not checked here — this package does not know which types a given consumer can convert.
PowerInvestmentsOpenAPIModels.add_requirement_association! — Method
Record that assoc (a caller-constructed RequirementAssociation) links a policy requirement to one member subject to it: requirement_id names the requirement and entity_id names the member.
One row per (requirement, member) pair. Duplicate pairs are rejected rather than collapsed — checked in O(1) against requirements_membership rather than rescanning requirements_associations.
This is the document's one guard against a duplicate association row; callers must not rescan requirements_associations themselves before calling this.
PowerInvestmentsOpenAPIModels.portfolio_document_from_json — Method
Build a PortfolioDocument from already-parsed JSON.
The schema version is checked first (check_schema_version); every components key must name a registered model type — an unknown type name errors rather than being skipped, since dropping the rows would lose data silently.
PowerInvestmentsOpenAPIModels.read_portfolio_document — Method
Read a PortfolioDocument from a JSON file.
Only the JSON file is read. Any base-system sidecar named by base_system_file and any HDF5 sidecar named by time_series_storage_file are left alone for the consumer to resolve relative to path.
Named distinctly from read_document (the SystemDocument reader) because the two differ only in return type, which Julia cannot dispatch on.
PowerInvestmentsOpenAPIModels.upgrade_portfolio_document — Method
Read the PortfolioDocument at src and write it to dst stamped with this package's schema version. Fails unless src is current or upgradable.