Connect Alpaca
Alpaca is included in the Pro plan. You can start with a demo account.
1. Create the API key
In your Alpaca dashboard, generate API keys. Paper trading and live trading have separate keys: paper keys go with the Demo account mode.
- Permissions: Alpaca keys can trade the account they belong to.
- Never enable withdrawals or transfers. BotEdge only places orders.
If the exchange offers it, restrict the key to the addresses BotEdge trades from: 161.35.155.159. A stolen key is then useless anywhere else.
2. Add it to BotEdge
- In the dashboard, click Add connection and choose Alpaca.
- Choose Live for your real account or Demo / testnet for a demo key.
- Paste the values from the exchange:
- API key
- API secret (secret)
Secrets are encrypted before they are stored and are never shown again.
- Save. The connection card shows your pointer, the webhook URL and the alert message.
Choose Demo to trade your Alpaca paper account.
3. Set up the alert
- Chart and ticker: The stock or crypto symbol, for example NASDAQ:AAPL.
- Quantity: Shares (or coins for crypto).
Then follow the TradingView guide to create the alert.
Demo account
Demo uses your Alpaca paper trading account: generate paper keys and choose Demo when you add the connection.
Order rejected?
The error email explains what Alpaca answered. The error guide covers the most common causes.