SkillPedia Skills Encyclopedia
中文 EN

MCP servers 2026-09-25 12:52 UTC

alpaca-mcp-server

Committed by claudiutiganetea-alpaca. Update Category: New Features & Capability Expansion. Commit details: sync: September 2026 specs, add option stop orders (#126). This update introduces new capabilities and expands supported use cases.

claudiutiganetea-alpaca a82ad1c alpacahq/alpaca-mcp-server

CommitRaw commit message

sync: September 2026 specs, add option stop orders (#126)

## Summary
Routine OpenAPI spec sync. The one change that affects behavior: Alpaca
now documents options support for `gtc` time-in-force and `stop` /
`stop_limit` order types. `place_option_order` is a hand-written
override, so the spec change does not reach it automatically — it still
said "market or limit" and "day only", and had no `stop_price` parameter
at all.

## Spec changes
Trading API went from 57 to 59 operations. Market data had no structural
change.

- `postOrder`: options now support `time_in_force: gtc` and types
`stop`, `stop_limit`. Multi-leg stays market/limit only.
- All four locates endpoints now state they are not available in paper
trading.
- `getAccountActivities`: activity-type wording ("capital gain" to
"capital gains", REORG is now "Worthless removal CA").
- Assets drop the deprecated `easy_to_borrow` field; option contracts
add `ppind`. Response-only, so these flow through automatically.

No removed or renamed endpoints. The exposed tool set is unchanged.

## Code changes
- `place_option_order`: new optional `stop_price`, wired into the
request body, plus corrected docs for `type` and `time_in_force`.
- Locates tool descriptions now say "Not available in paper trading" so
the model stops suggesting them on paper accounts.
- README locates section marked the same way.

## Test plan
- [x] 34 core tests pass (`test_integrity.py`,
`test_server_construction.py`)
- [x] 48 paper integration tests pass, 6 skipped — locates skip on 404,
which the spec now explains
- [x] Two new tests assert `stop_price` reaches the order body and is
omitted when unset
- [x] Verified the new test fails when the `stop_price` wiring is
removed

Co-authored-by: Cursor <cursoragent@cursor.com>