Alpaca · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for Alpaca Portfolio History API

3 actions 3 updates phrasing extends openapi/alpaca-portfolio-history-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for Alpaca's API. It is a proposal applied on top of the contract, not a document Alpaca publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 3

$.info
$.paths['/v1/trading/accounts/{account_id}/account/portfolio/history'].get
$.paths['/v2/account/portfolio/history'].get

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for Alpaca Portfolio History API
  version: 1.0.0
extends: openapi/alpaca-portfolio-history-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-24'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 2
- target: $.paths['/v1/trading/accounts/{account_id}/account/portfolio/history'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a trading account's equity and P&L history
      effect: read
      questions:
      - How has my portfolio equity changed over the last month?
      - Can I see intraday P&L history for a trading account?
      instructions:
      - text: Get the portfolio history for account {account_id}.
        slots:
          account_id: path.account_id
      - text: Show {timeframe} equity and P&L for account {account_id} from {start} to {end}.
        slots:
          timeframe: query.timeframe
          account_id: path.account_id
          start: query.start
          end: query.end
      method: generated
      generated: '2026-11-24'
- target: $.paths['/v2/account/portfolio/history'].get
  update:
    x-apievangelist-phrasing:
      intent: Get account equity and P&L history
      effect: read
      questions:
      - How has my account equity and P&L changed over a period?
      - Can I get portfolio P&L for a specific date range?
      - What profit or loss did my account make intraday?
      instructions:
      - text: Get my portfolio history for the {period} period.
        slots:
          period: query.period
      - text: Report my P&L over the {period} period in {timeframe} intervals with P&L reset to {pnl_reset}.
        slots:
          period: query.period
          timeframe: query.timeframe
          pnl_reset: query.pnl_reset
      method: generated
      generated: '2026-11-24'

Work with this as data

Every overlay 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 openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay 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 overlay
curl "https://apis.io/api/v1/overlays/alpaca-portfolio-history-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?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.