Retirement Lab Portfolio API

The Portfolio API from Retirement Lab — 2 operation(s) for portfolio.

GitHub OpenAPI

Operations 2

GET /api/portfolio/presets List Portfolio Presets #
GET /api/portfolio/asset-classes List Asset Classes #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/retirementlab-app:retirementlab-app-portfolio-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

retirementlab-app-portfolio-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Income Simulator Portfolio API
  version: 0.1.0
tags:
- name: Portfolio
paths:
  /api/portfolio/presets:
    get:
      summary: List Portfolio Presets
      description: 'Return all portfolio presets with labels, descriptions, and blended parameters.


        No authentication required.'
      operationId: list_portfolio_presets_api_portfolio_presets_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/PortfolioPresetResponse'
                type: array
                title: Response List Portfolio Presets Api Portfolio Presets Get
      tags:
      - Portfolio
  /api/portfolio/asset-classes:
    get:
      summary: List Asset Classes
      description: 'Return the full asset class registry with parameters and correlations.


        When *preset* is provided, expected returns reflect that preset''s values.

        No authentication required (reference data).'
      operationId: list_asset_classes_api_portfolio_asset_classes_get
      parameters:
      - description: Return assumption preset
        required: false
        schema:
          type: string
          title: Preset
          description: Return assumption preset
          default: historical
        name: preset
        in: query
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssetClassRegistryResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Portfolio
components:
  schemas:
    PortfolioPresetResponse:
      properties:
        id:
          type: string
          title: Id
        label:
          type: string
          title: Label
        description:
          type: string
          title: Description
        allocations:
          items:
            $ref: '#/components/schemas/AllocationResponse'
          type: array
          title: Allocations
        blended_return:
          type: number
          title: Blended Return
        blended_volatility:
          type: number
          title: Blended Volatility
      type: object
      required:
      - id
      - label
      - description
      - allocations
      - blended_return
      - blended_volatility
      title: PortfolioPresetResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AssetClassRegistryResponse:
      properties:
        asset_classes:
          items:
            $ref: '#/components/schemas/AssetClassResponse'
          type: array
          title: Asset Classes
        correlations:
          additionalProperties:
            additionalProperties:
              type: number
            type: object
          type: object
          title: Correlations
      type: object
      required:
      - asset_classes
      - correlations
      title: AssetClassRegistryResponse
    AssetClassResponse:
      properties:
        id:
          type: string
          title: Id
        label:
          type: string
          title: Label
        expected_return:
          type: number
          title: Expected Return
        volatility:
          type: number
          title: Volatility
      type: object
      required:
      - id
      - label
      - expected_return
      - volatility
      title: AssetClassResponse
    AllocationResponse:
      properties:
        asset_class:
          type: string
          title: Asset Class
        weight:
          type: number
          title: Weight
      type: object
      required:
      - asset_class
      - weight
      title: AllocationResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer