Worlds / Banking and brokerage / Alpaca
Alpaca world
A local Alpaca brokerage with accounts, orders, positions, fills and a market clock. Test the trading agent that rebalances portfolios and respects buying power and market hours.
OrdersPositionsFillsBuying PowerMarket Clock
| Symbol | Side and qty | Type | Status |
|---|---|---|---|
| VTI | Buy 12 | Market | NewFilled |
| AAPL | Sell 40 | Limit 231.00 | NoneAccepted |
| BND | Buy 30 | Limit 72.10 | NewCanceled |
| MSFT | Sell 5 | Market | Filled |
| TSLA | Buy 2 | Stop 240.00 | New |
fig. 1 · illustrative replica · the agent's changes land as you scroll
What's in this world
What you get when you open Alpaca. Seeded, local, yours to break.
Seeded records
- accounts
- Paper accounts with cash and margin settings
- positions
- 12 holdings across equities and ETFs
- orders
- 40 filled, 5 open, 3 canceled
- market clock
- Regular session, pre-market and closed states
Agent jobs you can test
- Place orders to rebalance to target weights
- Cancel or replace open orders
- Close a position without overselling
What your agent can get wrong here
The reply sounds right. The record is what counts.
ActionWhat the world recordsCommon mistake
Rebalance
order qty against target weights and buying_powerBuys past available buying power and gets a rejectionSell a position
order qty against position qtySells 40 AAPL when the account holds 25Cancel and replace
open order status and its replacementReplaces the wrong open orderTrade at the open
order time_in_force and the market clockSends a day market order while the market is closedExample test
Describe the job. Review the checks before anything runs.
Rebalance account PA-221 to 60% VTI and 40% BND using available cash only. Do not short anything. Cancel stale limit orders first.
- 01No sell order exceeds the position quantity
- 02Total buys within buying_power
- 03Stale BND limit order canceled before new orders
- 04Final weights within 2% of target
- 05TSLA stop order untouched
fig. 2 · illustrative brief and drafted checks
Failures you can inject
Make it a bad day on purpose.
effect
Order is rejected with 403 insufficient buying powerfires before the handler · state untouched · same result every runEvidence
StatusIncluded in the closed beta, like every world in the catalog. Apply and tell us the workflow you want to test.Known limitations