Kova Portfolio API

The Portfolio API from Kova — 7 operation(s) for portfolio.

GitHub OpenAPI

Operations 10

GET /strategies/{strategy_uuid}/portfolio Get current portfolio for a strategy #
POST /strategies/{strategy_uuid}/assets Create a manual asset for a strategy #
PATCH /strategies/{strategy_uuid}/assets/{uuid} Update a manual asset for a strategy #
DELETE /strategies/{strategy_uuid}/assets/{uuid} Delete a manual asset for a strategy #
POST /strategies/{strategy_uuid}/liabilities Create a manual liability for a strategy #
PATCH /strategies/{strategy_uuid}/liabilities/{uuid} Update a manual liability for a strategy #
DELETE /strategies/{strategy_uuid}/liabilities/{uuid} Delete a manual liability for a strategy #
POST /strategies/{strategy_uuid}/cash_flows Record a cash flow (deposit or withdrawal) #
GET /strategies/{strategy_uuid}/cash_flows List all cash flows for a strategy's portfolio #
DELETE /strategies/{strategy_uuid}/cash_flows/{id} Remove a cash flow record #

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/kovatools-com:kovatools-com-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

kovatools-com-portfolio-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Kovatools Com Portfolio API
  version: 1.0.0
  description: 'Operations tagged Portfolio across 2 of this provider''s published API definitions: kovatools-com-openapi.yml, openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://kovatools.com/api/v1
  description: Production
- url: http://localhost:3000/api/v1
  description: Development
security:
- bearerAuth: []
tags:
- name: Portfolio
paths:
  /strategies/{strategy_uuid}/portfolio:
    get:
      summary: Get current portfolio for a strategy
      description: 'Returns the most recent composed portfolio for a strategy — normalized brokerage

        holdings plus any manually tracked assets and liabilities, combined with

        performance metrics.


        Returns 404 if the strategy has no portfolio on file (never evaluated and no

        manual holdings). To update the portfolio, submit a new one via

        `POST /strategies/{uuid}/briefs`.'
      operationId: getStrategyPortfolio
      tags:
      - Portfolio
      parameters:
      - name: strategy_uuid
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Portfolio found
          content:
            application/json:
              schema:
                type: object
                properties:
                  portfolio:
                    $ref: '#/components/schemas/Portfolio'
                  meta:
                    $ref: '#/components/schemas/Meta'
        '404':
          description: No portfolio on file for this strategy
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    servers:
    - url: https://kovatools.com/api/v1
      description: Production
    - url: http://localhost:3000/api/v1
      description: Development
  /strategies/{strategy_uuid}/assets:
    post:
      summary: Create a manual asset for a strategy
      operationId: createStrategyAsset
      tags:
      - Portfolio
      parameters:
      - name: strategy_uuid
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/AssetUpsertRequest'
              - type: object
                required:
                - name
                - type
      responses:
        '201':
          description: Asset created
          content:
            application/json:
              schema:
                type: object
                properties:
                  asset:
                    $ref: '#/components/schemas/Asset'
                  meta:
                    $ref: '#/components/schemas/Meta'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Strategy not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Invalid asset payload
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    servers:
    - url: https://kovatools.com/api/v1
      description: Production
    - url: http://localhost:3000/api/v1
      description: Development
  /strategies/{strategy_uuid}/assets/{uuid}:
    patch:
      summary: Update a manual asset for a strategy
      operationId: updateStrategyAsset
      tags:
      - Portfolio
      parameters:
      - name: strategy_uuid
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: uuid
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssetUpsertRequest'
      responses:
        '200':
          description: Asset updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  asset:
                    $ref: '#/components/schemas/Asset'
                  meta:
                    $ref: '#/components/schemas/Meta'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Strategy or asset not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Invalid asset payload
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    delete:
      summary: Delete a manual asset for a strategy
      operationId: deleteStrategyAsset
      tags:
      - Portfolio
      parameters:
      - name: strategy_uuid
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: uuid
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: Asset deleted
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Strategy or asset not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    servers:
    - url: https://kovatools.com/api/v1
      description: Production
    - url: http://localhost:3000/api/v1
      description: Development
  /strategies/{strategy_uuid}/liabilities:
    post:
      summary: Create a manual liability for a strategy
      operationId: createStrategyLiability
      tags:
      - Portfolio
      parameters:
      - name: strategy_uuid
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/LiabilityUpsertRequest'
              - type: object
                required:
                - name
                - type
                - current_balance
      responses:
        '201':
          description: Liability created
          content:
            application/json:
              schema:
                type: object
                properties:
                  liability:
                    $ref: '#/components/schemas/Liability'
                  meta:
                    $ref: '#/components/schemas/Meta'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Strategy not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Invalid liability payload
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    servers:
    - url: https://kovatools.com/api/v1
      description: Production
    - url: http://localhost:3000/api/v1
      description: Development
  /strategies/{strategy_uuid}/liabilities/{uuid}:
    patch:
      summary: Update a manual liability for a strategy
      operationId: updateStrategyLiability
      tags:
      - Portfolio
      parameters:
      - name: strategy_uuid
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: uuid
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LiabilityUpsertRequest'
      responses:
        '200':
          description: Liability updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  liability:
                    $ref: '#/components/schemas/Liability'
                  meta:
                    $ref: '#/components/schemas/Meta'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Strategy or liability not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Invalid liability payload
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    delete:
      summary: Delete a manual liability for a strategy
      operationId: deleteStrategyLiability
      tags:
      - Portfolio
      parameters:
      - name: strategy_uuid
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: uuid
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: Liability deleted
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Strategy or liability not found
    servers:
    - url: https://kovatools.com/api/v1
      description: Production
    - url: http://localhost:3000/api/v1
      description: Development
  /strategies/{strategy_uuid}/cash_flows:
    post:
      summary: Record a cash flow (deposit or withdrawal)
      operationId: recordCashFlow
      tags:
      - Portfolio
      parameters:
      - name: strategy_uuid
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CashFlowCreateRequest'
      responses:
        '201':
          description: Cash flow recorded
          content:
            application/json:
              schema:
                type: object
                properties:
                  cash_flow:
                    $ref: '#/components/schemas/CashFlow'
                  meta:
                    $ref: '#/components/schemas/Meta'
        '401':
          description: Unauthorized
        '404':
          description: Strategy not found
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    get:
      summary: List all cash flows for a strategy's portfolio
      operationId: listCashFlows
      tags:
      - Portfolio
      parameters:
      - name: strategy_uuid
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Cash flows list
          content:
            application/json:
              schema:
                type: object
                properties:
                  cash_flows:
                    type: array
                    items:
                      $ref: '#/components/schemas/CashFlow'
                  meta:
                    $ref: '#/components/schemas/Meta'
        '401':
          description: Unauthorized
        '404':
          description: Strategy or portfolio not found
    servers:
    - url: https://kovatools.com/api/v1
      description: Production
    - url: http://localhost:3000/api/v1
      description: Development
  /strategies/{strategy_uuid}/cash_flows/{id}:
    delete:
      summary: Remove a cash flow record
      operationId: removeCashFlow
      tags:
      - Portfolio
      parameters:
      - name: strategy_uuid
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: id
        in: path
        required: true
        schema:
          type: integer
      responses:
        '204':
          description: Cash flow removed
        '401':
          description: Unauthorized
        '404':
          description: Strategy, portfolio, or cash flow not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    servers:
    - url: https://kovatools.com/api/v1
      description: Production
    - url: http://localhost:3000/api/v1
      description: Development
components:
  schemas:
    LiabilityUpsertRequest:
      type: object
      properties:
        name:
          type: string
        type:
          type: string
          enum:
          - line_of_credit
          - mortgage
          - loan
          - other
        current_balance:
          type: number
        notes:
          type: string
        currency:
          type: string
          minLength: 3
          maxLength: 3
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
        meta:
          $ref: '#/components/schemas/Meta'
    Asset:
      type: object
      properties:
        uuid:
          type: string
          format: uuid
        name:
          type: string
        type:
          type: string
          enum:
          - investment_account
          - bitcoin
          - real_estate
          - other
        ticker:
          type: string
          nullable: true
        quantity:
          type: number
          nullable: true
        current_value:
          type: number
          nullable: true
        cost_basis_per_unit:
          type: number
          nullable: true
        notes:
          type: string
          nullable: true
        price_source:
          type: string
          enum:
          - coingecko
          - manual
          nullable: true
    CashFlowCreateRequest:
      type: object
      required:
      - flow_type
      - amount
      properties:
        flow_type:
          type: string
          enum:
          - deposit
          - withdrawal
        amount:
          type: number
          exclusiveMinimum: 0
        notes:
          type: string
        occurred_on:
          type: string
          format: date
          description: Date the cash flow occurred. Defaults to today.
    AssetUpsertRequest:
      type: object
      properties:
        name:
          type: string
        type:
          type: string
          enum:
          - investment_account
          - bitcoin
          - real_estate
          - other
        current_value:
          type: number
        quantity:
          type: number
        cost_basis_per_unit:
          type: number
        notes:
          type: string
    CashFlow:
      type: object
      properties:
        id:
          type: integer
        flow_type:
          type: string
          enum:
          - deposit
          - withdrawal
        amount:
          type: number
        signed_amount:
          type: number
          description: Positive for deposits, negative for withdrawals
        notes:
          type: string
          nullable: true
        occurred_on:
          type: string
          format: date
        created_at:
          type: string
          format: date-time
    Liability:
      type: object
      properties:
        uuid:
          type: string
          format: uuid
        name:
          type: string
        type:
          type: string
          enum:
          - line_of_credit
          - mortgage
          - loan
          - other
        current_balance:
          type: number
        notes:
          type: string
          nullable: true
    Portfolio:
      type: object
      properties:
        holdings:
          type: object
          description: 'Composed portfolio view — portfolio_v1 schema extended with `assets` and

            `liabilities` keys for manual holdings tracked alongside the normalized snapshot.

            '
          properties:
            schema_version:
              type: string
              example: 1.0.0
            stocks:
              type: array
              items:
                type: object
                properties:
                  ticker:
                    type: string
                  shares:
                    type: number
                  cost_basis:
                    type: number
                    nullable: true
                  current_price:
                    type: number
                    nullable: true
                  market_value:
                    type: number
                    nullable: true
                  price_source:
                    type: string
                    enum:
                    - marketstack
                    - snapshot_price
                    - unavailable
            options:
              type: array
              items:
                type: object
            cash:
              type: number
            timestamp:
              type: string
              format: date-time
            notes:
              type: array
              items:
                type: string
            assets:
              type: array
              description: Non-brokerage positions (investment accounts, Bitcoin, real estate, other manually tracked assets)
              items:
                $ref: '#/components/schemas/Asset'
            liabilities:
              type: array
              description: Strategy-level liabilities tracked separately from assets
              items:
                $ref: '#/components/schemas/Liability'
        metrics:
          type: object
          nullable: true
          description: Performance and alignment metrics. `null` if the portfolio has not been evaluated yet.
          properties:
            performance_score:
              type: number
              nullable: true
            alignment_score:
              type: number
              nullable: true
            consistency_score:
              type: number
              nullable: true
            absolute_return_percent:
              type: number
              nullable: true
            portfolio_value:
              type: number
              nullable: true
        snapshot_at:
          type: string
          format: date-time
          nullable: true
          description: When the portfolio snapshot was uploaded
        evaluated_at:
          type: string
          format: date-time
          nullable: true
          description: When metrics were last calculated
    Meta:
      type: object
      properties:
        request_id:
          type: string
          description: Unique request identifier for debugging
        timestamp:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'API token prefixed with `kova_tk_`. Example: `Bearer kova_tk_a3f2b1c4d5e6f7a8b9c0d1e2f3a4b5c6`'
x-refined-from:
- kovatools-com-openapi.yml
- openapi.yaml