Closed beta · run Worlds on your machineBrowse worlds →

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
Book a demo
Alpaca · Orders · TodayIllustrative
SymbolSide and qtyTypeStatus
VTIBuy 12MarketNewFilled
AAPLSell 40Limit 231.00NoneAccepted
BNDBuy 30Limit 72.10NewCanceled
MSFTSell 5MarketFilled
TSLABuy 2Stop 240.00New

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

  1. Place orders to rebalance to target weights
  2. Cancel or replace open orders
  3. 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
Rebalanceorder qty against target weights and buying_powerBuys past available buying power and gets a rejection
Sell a positionorder qty against position qtySells 40 AAPL when the account holds 25
Cancel and replaceopen order status and its replacementReplaces the wrong open order
Trade at the openorder time_in_force and the market clockSends a day market order while the market is closed

Example test

Describe the job. Review the checks before anything runs.

Brief · plain EnglishIllustrative

Rebalance account PA-221 to 60% VTI and 40% BND using available cash only. Do not short anything. Cancel stale limit orders first.
Drafted test · reviewDrafting
  1. 01No sell order exceeds the position quantity
  2. 02Total buys within buying_power
  3. 03Stale BND limit order canceled before new orders
  4. 04Final weights within 2% of target
  5. 05TSLA stop order untouched

fig. 2 · illustrative brief and drafted checks

Failures you can inject

Make it a bad day on purpose.

effectOrder is rejected with 403 insufficient buying powerfires before the handler · state untouched · same result every run

Evidence

StatusIncluded in the closed beta, like every world in the catalog. Apply and tell us the workflow you want to test.Known limitations