Alpaca · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for Trading Positions API

7 actions 7 updates phrasing extends openapi/alpaca-positions-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 7

$.info
$.paths['/v2/positions'].get
$.paths['/v2/positions'].delete
$.paths['/v2/positions/{symbol_or_asset_id}'].get
$.paths['/v2/positions/{symbol_or_asset_id}'].delete
$.paths['/v2/positions/{symbol_or_contract_id}/do-not-exercise'].post
$.paths['/v2/positions/{symbol_or_contract_id}/exercise'].post

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 Trading Positions API
  version: 1.0.0
extends: openapi/alpaca-positions-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: 6
- target: $.paths['/v2/positions'].get
  update:
    x-apievangelist-phrasing:
      intent: List open positions
      effect: read
      questions:
      - Which stocks and options does my account hold open right now?
      - What is the current market value of my open positions?
      instructions:
      - text: List all my open positions.
      - text: Show the cost basis and market value of every position I hold.
      method: generated
      generated: '2026-11-24'
- target: $.paths['/v2/positions'].delete
  update:
    x-apievangelist-phrasing:
      intent: Close all open positions
      effect: destructive
      questions:
      - How do I liquidate every long and short position in my account at once?
      - Can I close all my positions and cancel open orders first?
      instructions:
      - text: Close all my open positions.
      - text: Liquidate every position in my account and cancel open orders ({cancel_orders}).
        slots:
          cancel_orders: query.cancel_orders
      method: generated
      generated: '2026-11-24'
- target: $.paths['/v2/positions/{symbol_or_asset_id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get one open position
      effect: read
      questions:
      - What is my current open position in a specific stock?
      - Can I look up a single position by symbol?
      instructions:
      - text: Get my open position in {symbol_or_asset_id}.
        slots:
          symbol_or_asset_id: path.symbol_or_asset_id
      - text: Show the shares and cost basis of {symbol_or_asset_id}.
        slots:
          symbol_or_asset_id: path.symbol_or_asset_id
      method: generated
      generated: '2026-11-24'
- target: $.paths['/v2/positions/{symbol_or_asset_id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Close part of a position
      effect: destructive
      questions:
      - Can I sell only some shares of a long position instead of closing it all?
      - How do I close a percentage of a position?
      instructions:
      - text: Close {qty} shares of my position in {symbol_or_asset_id}.
        slots:
          qty: query.qty
          symbol_or_asset_id: path.symbol_or_asset_id
      - text: Sell {percentage} percent of my {symbol_or_asset_id} position.
        slots:
          percentage: query.percentage
          symbol_or_asset_id: path.symbol_or_asset_id
      method: generated
      generated: '2026-11-24'
- target: $.paths['/v2/positions/{symbol_or_contract_id}/do-not-exercise'].post
  update:
    x-apievangelist-phrasing:
      intent: Do not exercise an option at expiry
      effect: write
      questions:
      - How do I stop an in-the-money option from being exercised automatically at expiry?
      - Can I submit a do-not-exercise instruction for an option contract?
      instructions:
      - text: Do not exercise the option {symbol_or_contract_id} at expiry.
        slots:
          symbol_or_contract_id: path.symbol_or_contract_id
      - text: Submit a do-not-exercise instruction for option contract {symbol_or_contract_id}.
        slots:
          symbol_or_contract_id: path.symbol_or_contract_id
      method: generated
      generated: '2026-11-24'
- target: $.paths['/v2/positions/{symbol_or_contract_id}/exercise'].post
  update:
    x-apievangelist-phrasing:
      intent: Exercise an option now
      effect: write
      questions:
      - How do I exercise an option contract immediately instead of waiting for expiry?
      - Can I convert my option into the underlying shares right away?
      instructions:
      - text: Exercise the option {symbol_or_contract_id} now.
        slots:
          symbol_or_contract_id: path.symbol_or_contract_id
      - text: Convert my option contract {symbol_or_contract_id} into shares immediately.
        slots:
          symbol_or_contract_id: path.symbol_or_contract_id
      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-positions-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.