Loading...
Loading...
Alpaca brokerage — US stocks & ETFs. Account, positions, orders, quotes, history, and order placement (paper + live). Use when the user wants to check or trade a US-stock account on Alpaca (e.g. "Alpaca buying power", "buy 1 AAPL on Alpaca paper", "my Alpaca positions"). Cloud API, runs directly in the container.
npx skill4agent add starchild-ai-agent/official-skills alpacapaper-api.alpaca.marketsapi.alpaca.markets--confirm-live| Variable | Required | Notes |
|---|---|---|
| yes (paper) | paper Key ID |
| yes (paper) | paper Secret |
| only for live | live Key ID |
| only for live | live Secret |
| no | |
pip install alpaca-pypaperpython skills/alpaca/scripts/alpaca_cli.py status
python skills/alpaca/scripts/alpaca_cli.py account
python skills/alpaca/scripts/alpaca_cli.py positions
python skills/alpaca/scripts/alpaca_cli.py orders [--executions]
python skills/alpaca/scripts/alpaca_cli.py quote --symbol AAPL
python skills/alpaca/scripts/alpaca_cli.py history --symbol AAPL --period 1d --limit 90
# place (paper): qty OR notional, market OR limit
python skills/alpaca/scripts/alpaca_cli.py place --symbol AAPL --side buy --qty 1 --type market
python skills/alpaca/scripts/alpaca_cli.py place --symbol AAPL --side buy --notional 500 --type limit --limit-price 180
python skills/alpaca/scripts/alpaca_cli.py cancel --order-id <id>
# live: must add --profile live AND --confirm-live
python skills/alpaca/scripts/alpaca_cli.py --profile live --confirm-live place --symbol AAPL --side buy --qty 11m 5m 15m 30m 1h 1d 1w 1M--notionalstatussip--confirm-live