Alpaca is a broker built around an API. That makes it one of the simplest brokers to connect to a trading bot: you make a key on Alpaca's website, paste it into the bot, and the bot can read prices and send orders for you. This guide walks through each step for the Verus Trading Bot, and explains the choices you make on the way.
If you want the short version first, the Alpaca broker page lists the requirements on one screen. For how the bot itself trades, read How it works.
What you need before you start
- An individual (personal) brokerage account at Alpaca, in your own name. Business, LLC, corporate and trust accounts are not supported.
- A Mac or Windows computer to run the app on. The bot runs on your computer, not on our servers.
- A Verus Trading Bot plan. Your plan includes any one broker you pick. If Alpaca is not your included broker, you can add it as an add-on. See Pricing.
- For live trading only: Alpaca's real-time data plan. More on that below.
Step 1: Open an account and log in
Go to alpaca.markets, open an account and log in. Alpaca gives you two kinds of account from the same login: a paper account and a live account. You can use both, and you can start with paper while your live account is being set up.
- Paper account: practice money, not real money. Orders are simulated by Alpaca. Good for learning the app.
- Live account: real money. Orders are real, and so are gains and losses.
Keep in mind that the Verus Trading Bot also has its own practice mode, called SHADOW, that works on any account. We explain the difference in Paper trading vs live trading.
Step 2: Turn on real-time data (live accounts)
A bot that works small price moves needs fresh prices. For live trading on Alpaca, the bot needs Alpaca's real-time data plan, called Algo Trader Plus. In Alpaca, go to Plans & Features, then Market Data, and turn on Algo Trader Plus. The data plan is paid to Alpaca, not to Verus.
Paper accounts can skip this step. On a paper account the app can use Alpaca's free price feed (IEX), and the top bar says "Free price feed (IEX)". That is fine for practice. A live account must have real-time prices: if the data plan is off, the app tells you "Live trading needs Alpaca's paid market data plan (Algo Trader Plus)" and ARM stays grey until it is on.
Alpaca's prices can change, so check with your broker for the current price. Our live-price table links to Alpaca's own page.
Step 3: Create an API key
An API key is how the app logs in to your Alpaca account without your password. In Alpaca, go to Home, then API Keys, then Generate. Alpaca shows two parts: the key ID and the secret. Copy both now. If you lose the secret, generate a new key.
You can tell the two kinds of key apart by how they start:
- Paper keys start with PK. They trade the free practice account.
- Live keys start with AK. They trade real money.
Make sure you copy the key for the account you mean to use. It is a common mix-up to paste a paper key and wonder why no real orders show up, or the other way round.
Step 4: Connect Alpaca in the app
Install the app and open it. The first time, your computer may show a security warning; this guide shows what to click on Mac and Windows. Then:
- Read and accept the agreements.
- Activate your license with your license key from the member area.
- Choose your broker: Alpaca.
- Paste both parts of your API key: the key ID and the secret.
- Press Save & open the bot. The app checks the key, the account and the data plan.
Your keys are saved encrypted on your own computer. They are never sent to us, and we never see your broker password. If Alpaca does not accept the key, the app says so, and the fix is usually to copy both parts again from your Alpaca dashboard.
Step 5: Check the main screen
The main screen opens in SHADOW: watching only, no real orders. The app always starts in SHADOW. Before you do anything else, check the chips at the top:
- "Alpaca connected" means the app is talking to your broker.
- "Data live" means prices are streaming in. On a paper account you may see "Free price feed (IEX)" instead.
- Outside market hours you will see "Market closed — prices resume 9:30 AM ET". That is normal.
Alpaca allows one price connection per login. If another app or bot is already using your Alpaca price feed, the app tells you so. Close the other program, or upgrade your Alpaca data plan.
Step 6: Add stocks and set your limits
The bot trades only the stocks on My stocks, top first. None are added until you add them. Open the Scanner, type a symbol and press Add, or use Find stocks during market hours to see the busiest stocks rated Great, Good or Weak for the bot's style of trading. The scanner never adds a stock by itself. Our guide on picking stocks for penny scalping explains what to look for.
On Alpaca the bot can work up to 5 stocks at once. Then open Settings and set your limits: the most per trade, the most money the bot may use, your daily loss limit and your trading hours. The safety settings guide explains each one.
Step 7: Practice, then decide
Press ARM while you are in SHADOW and the bot runs a practice run: the whole bot on real prices, with pretend orders only. The top bar says "Practice run - SHADOW, no real orders". Watch a few sessions before you think about LIVE.
When you are ready to trade for real, press STOP to end the practice run, switch to LIVE on the top bar, answer the question, then press ARM. ARM in LIVE sends real orders. The bot trades from your start time (10:00 AM ET unless you change it) for that one day, and you need to keep the app open. STOP turns it off at once and sells what it holds.
Common problems
- "Alpaca refused the price feed login (402)": paste your Alpaca key again in Settings > Change broker or keys.
- "Your Alpaca data plan doesn't include this price feed (409)": the app switches to the free feed by itself.
- "Alpaca not answering": your broker didn't answer just now. Check your internet.
- ARM is grey: the reason is written under it. Hover over or tap the button to see why.
Before you trade
Start small. Use SHADOW and a paper account until you understand what the bot does. Set limits you are comfortable losing, and watch your broker account. Education and software only. Not financial advice. Trading is risky and you can lose money.