Alpaca · OpenAPI Overlay 1.0.0
API Evangelist conversational phrasing for Alpaca Trading API
19 actions
19 updates
phrasing
extends
openapi/alpaca-trading-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.
What the actions change
x-apievangelist-phrasing
Targets 19 · first 16 shown; the file carries all of them
$.info
$.paths['/v1/trading/accounts/{account_id}/orders'].get
$.paths['/v1/trading/accounts/{account_id}/orders'].post
$.paths['/v1/trading/accounts/{account_id}/orders'].delete
$.paths['/v1/trading/accounts/{account_id}/orders/{order_id}'].get
$.paths['/v1/trading/accounts/{account_id}/orders/{order_id}'].delete
$.paths['/v1/trading/accounts/{account_id}/orders/{order_id}'].patch
$.paths['/v1/trading/accounts/{account_id}/orders:by_client_order_id'].get
$.paths['/v1/trading/accounts/{account_id}/positions'].get
$.paths['/v1/trading/accounts/{account_id}/positions'].delete
$.paths['/v1/trading/accounts/{account_id}/positions/{symbol_or_asset_id}'].get
$.paths['/v1/trading/accounts/{account_id}/positions/{symbol_or_asset_id}'].delete
$.paths['/v2/events/trades'].get
$.paths['/v1/accounts/positions'].get
$.paths['/v1/trading/accounts/{account_id}/account/configurations'].patch
$.paths['/v1/trading/accounts/{account_id}/limits'].get
OpenAPI Overlay
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
title: API Evangelist conversational phrasing for Alpaca Trading API
version: 1.0.0
extends: openapi/alpaca-trading-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: 18
- target: $.paths['/v1/trading/accounts/{account_id}/orders'].get
update:
x-apievangelist-phrasing:
intent: List an account's orders
effect: read
questions:
- What orders has my account placed?
- Can I see only the open orders on an account?
instructions:
- text: List all orders for account {account_id}.
slots:
account_id: path.account_id
- text: Show {status} orders for account {account_id}.
slots:
status: query.status
account_id: path.account_id
method: generated
generated: '2026-11-24'
- target: $.paths['/v1/trading/accounts/{account_id}/orders'].post
update:
x-apievangelist-phrasing:
intent: Place an order for an account
effect: write
questions:
- How do I buy or sell a stock through Alpaca?
- Can I place a stop-limit order with a limit price?
instructions:
- text: Place a {type} order for {symbol} on account {account_id} with {time_in_force} time in force.
slots:
type: requestBody.type
symbol: requestBody.symbol
account_id: path.account_id
time_in_force: requestBody.time_in_force
- text: Buy {qty} shares of {symbol} at {limit_price} on account {account_id} with {time_in_force}.
slots:
qty: requestBody.qty
symbol: requestBody.symbol
limit_price: requestBody.limit_price
account_id: path.account_id
time_in_force: requestBody.time_in_force
method: generated
generated: '2026-11-24'
- target: $.paths['/v1/trading/accounts/{account_id}/orders'].delete
update:
x-apievangelist-phrasing:
intent: Cancel all open orders on an account
effect: destructive
questions:
- How do I cancel every open order on an account at once?
- Can I clear all my pending trades in one call?
instructions:
- text: Cancel all open orders for account {account_id}.
slots:
account_id: path.account_id
- text: Clear every pending order on account {account_id}.
slots:
account_id: path.account_id
method: generated
generated: '2026-11-24'
- target: $.paths['/v1/trading/accounts/{account_id}/orders/{order_id}'].get
update:
x-apievangelist-phrasing:
intent: Get an order by ID
effect: read
questions:
- What is the status of a specific order?
- Can I look up one order by its ID?
instructions:
- text: Get order {order_id} on account {account_id}.
slots:
order_id: path.order_id
account_id: path.account_id
- text: Show the status of order {order_id} for account {account_id}.
slots:
order_id: path.order_id
account_id: path.account_id
method: generated
generated: '2026-11-24'
- target: $.paths['/v1/trading/accounts/{account_id}/orders/{order_id}'].delete
update:
x-apievangelist-phrasing:
intent: Cancel one open order
effect: destructive
questions:
- How do I cancel a single open order?
- Can I cancel an order that hasn't filled yet?
instructions:
- text: Cancel order {order_id} on account {account_id}.
slots:
order_id: path.order_id
account_id: path.account_id
- text: Cancel only the open order {order_id} for account {account_id}.
slots:
order_id: path.order_id
account_id: path.account_id
method: generated
generated: '2026-11-24'
- target: $.paths['/v1/trading/accounts/{account_id}/orders/{order_id}'].patch
update:
x-apievangelist-phrasing:
intent: Replace an order with new parameters
effect: write
questions:
- Can I change the limit price of an existing order?
- Is it possible to modify an order after it has been placed?
instructions:
- text: Replace order {order_id} on account {account_id} with a limit price of {limit_price}.
slots:
order_id: path.order_id
account_id: path.account_id
limit_price: requestBody.limit_price
- text: Change the stop price of order {order_id} on account {account_id} to {stop_price}.
slots:
order_id: path.order_id
account_id: path.account_id
stop_price: requestBody.stop_price
method: generated
generated: '2026-11-24'
- target: $.paths['/v1/trading/accounts/{account_id}/orders:by_client_order_id'].get
update:
x-apievangelist-phrasing:
intent: Look up an order by client order ID
effect: read
questions:
- Can I find an order using the client order ID I assigned?
- What does the order look like when I only have its client-assigned ID?
instructions:
- text: Find the order with client order ID {client_order_id} on account {account_id}.
slots:
client_order_id: query.client_order_id
account_id: path.account_id
- text: Look up order {client_order_id} for account {account_id}.
slots:
client_order_id: query.client_order_id
account_id: path.account_id
method: generated
generated: '2026-11-24'
- target: $.paths['/v1/trading/accounts/{account_id}/positions'].get
update:
x-apievangelist-phrasing:
intent: List an account's open positions
effect: read
questions:
- Which stocks does my account hold open?
- What positions are currently open on an account?
instructions:
- text: List open positions for account {account_id}.
slots:
account_id: path.account_id
- text: Show every stock position held on account {account_id}.
slots:
account_id: path.account_id
method: generated
generated: '2026-11-24'
- target: $.paths['/v1/trading/accounts/{account_id}/positions'].delete
update:
x-apievangelist-phrasing:
intent: Liquidate all open positions
effect: destructive
questions:
- How do I close every position in an account at once?
- Can I liquidate all long and short positions in one call?
instructions:
- text: Close all positions for account {account_id}.
slots:
account_id: path.account_id
- text: Liquidate every open position on account {account_id}.
slots:
account_id: path.account_id
method: generated
generated: '2026-11-24'
- target: $.paths['/v1/trading/accounts/{account_id}/positions/{symbol_or_asset_id}'].get
update:
x-apievangelist-phrasing:
intent: Get one open position by symbol
effect: read
questions:
- What is my open position in a particular stock?
- Can I check one position by its symbol?
instructions:
- text: Get the open position in {symbol_or_asset_id} for account {account_id}.
slots:
symbol_or_asset_id: path.symbol_or_asset_id
account_id: path.account_id
- text: Show my position in {symbol_or_asset_id} on account {account_id}.
slots:
symbol_or_asset_id: path.symbol_or_asset_id
account_id: path.account_id
method: generated
generated: '2026-11-24'
- target: $.paths['/v1/trading/accounts/{account_id}/positions/{symbol_or_asset_id}'].delete
update:
x-apievangelist-phrasing:
intent: Close part or all of one position
effect: destructive
questions:
- How do I sell only some shares of a position?
- Can I liquidate a percentage of a stock position?
instructions:
- text: Close {percentage} percent of my position in {symbol_or_asset_id} on account {account_id}.
slots:
percentage: query.percentage
symbol_or_asset_id: path.symbol_or_asset_id
account_id: path.account_id
- text: Sell {qty} shares of {symbol_or_asset_id} on account {account_id}.
slots:
qty: query.qty
symbol_or_asset_id: path.symbol_or_asset_id
account_id: path.account_id
method: generated
generated: '2026-11-24'
- target: $.paths['/v2/events/trades'].get
update:
x-apievangelist-phrasing:
intent: Listen to trade events over SSE
effect: read
questions:
- How do I get real-time trade updates for my orders?
- Can I stream trade events from a specific date?
instructions:
- text: Subscribe to trade events from {since} to {until}.
slots:
since: query.since
until: query.until
- text: Stream trade updates since event {since_id}.
slots:
since_id: query.since_id
method: generated
generated: '2026-11-24'
- target: $.paths['/v1/accounts/positions'].get
update:
x-apievangelist-phrasing:
intent: List deprecated positions across all accounts
effect: read
questions:
- Is there a deprecated endpoint that lists positions across every account?
- What does the old v1 positions endpoint return?
instructions:
- text: Use the deprecated v1 endpoint to list positions across all accounts.
- text: Fetch all account positions with the deprecated v1 positions call.
method: generated
generated: '2026-11-24'
- target: $.paths['/v1/trading/accounts/{account_id}/account/configurations'].patch
update:
x-apievangelist-phrasing:
intent: Update an account's trading settings
effect: write
questions:
- How do I turn off overnight trading for an account?
- Can I change the maximum margin multiplier on an account?
instructions:
- text: Set the margin multiplier on account {account_id} to {max_margin_multiplier}.
slots:
account_id: path.account_id
max_margin_multiplier: requestBody.max_margin_multiplier
- text: Disable overnight trading for account {account_id}.
slots:
account_id: path.account_id
method: generated
generated: '2026-11-24'
- target: $.paths['/v1/trading/accounts/{account_id}/limits'].get
update:
x-apievangelist-phrasing:
intent: Get real-time trading limits for an account
effect: read
questions:
- What are my account's real-time trading limits?
- How much can I still trade before hitting my daily limit?
instructions:
- text: Get the trading limits for account {account_id}.
slots:
account_id: path.account_id
- text: Show how much I have left to trade on account {account_id}.
slots:
account_id: path.account_id
method: generated
generated: '2026-11-24'
- target: $.paths['/v1/trading/accounts/{account_id}/orders/estimation'].post
update:
x-apievangelist-phrasing:
intent: Estimate how much I'd get for a notional order
effect: read
questions:
- How many shares would I receive for a notional buy?
- Can I estimate an order's quantity and price before placing it?
instructions:
- text: Estimate a {type} order for {symbol} on account {account_id} with {time_in_force}.
slots:
type: requestBody.type
symbol: requestBody.symbol
account_id: path.account_id
time_in_force: requestBody.time_in_force
- text: Estimate how many shares I'd get for {notional} notional on account {account_id}.
slots:
notional: requestBody.notional
account_id: path.account_id
method: generated
generated: '2026-11-24'
- target: $.paths['/v1/trading/accounts/{account_id}/positions/{symbol_or_contract_id}/do-not-exercise'].post
update:
x-apievangelist-phrasing:
intent: Do not exercise an options position at expiry
effect: destructive
questions:
- How do I stop an in-the-money option from being exercised automatically?
- Can I submit a do-not-exercise instruction for an option contract?
instructions:
- text: Do not exercise the option {symbol_or_contract_id} on account {account_id}.
slots:
symbol_or_contract_id: path.symbol_or_contract_id
account_id: path.account_id
- text: Submit a do-not-exercise instruction for {symbol_or_contract_id} on account {account_id}.
slots:
symbol_or_contract_id: path.symbol_or_contract_id
account_id: path.account_id
method: generated
generated: '2026-11-24'
- target: $.paths['/v1/trading/accounts/{account_id}/positions/{symbol_or_contract_id}/exercise'].post
update:
x-apievangelist-phrasing:
intent: Exercise an options position
effect: destructive
questions:
- How do I exercise an option contract I hold?
- Can I exercise only a portion of my option contracts?
instructions:
- text: Exercise the option {symbol_or_contract_id} on account {account_id}.
slots:
symbol_or_contract_id: path.symbol_or_contract_id
account_id: path.account_id
- text: Exercise {qty} contracts of {symbol_or_contract_id} on account {account_id}.
slots:
qty: requestBody.qty
symbol_or_contract_id: path.symbol_or_contract_id
account_id: path.account_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.
Call it yourself
curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/alpaca-trading-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.