- Create a strategy with Discord as its alert source. The Create strategy form: a strategy name typed in, Discord picked as its alert source and a channel in a server you run chosen, then Next to what it trades, where Stocks is picked.
Alerts to orders
Automate Discord alerts to Alpaca
Nyria lets you auto trade each Discord alert in your Alpaca account.

Setup steps
Invite the Nyria bot to a Discord server you run. Pick the alerts channel in a Nyria strategy. Then connect your Alpaca account in Nyria with an API key. Each call posted there becomes an order in your own Alpaca account. Test it free on Nyria Paper or on an Alpaca paper account first.
- 1Connect Alpaca. In the Alpaca dashboard, switch to Paper or Live and select Generate New Keys. Copy the API key ID and the Secret key. Alpaca shows the secret once. In Nyria, open Integrations and select the Alpaca card. Select Connect paper account or Connect live account, then Accept and continue. Paste both values.
- 2Link Discord. In Nyria, open Integrations and scroll to Third-party integrations. Open the Discord card and select Connect Discord. Nyria asks Discord only for your identity and server list.
- 3Invite the bot and pick the channel. Select Create strategy and pick Discord. On the Discord channel step, select Invite bot to server and authorize it. You need the Manage Server permission to invite the bot. Choose the server and the alerts channel. Set an Author or Keyword under Message filters if others post there.
- 4Check real messages. Open the Alert format card on the strategy's Integration tab. Assign a past message from the channel to each side the strategy uses. Long entry and Long exit, for example. Nyria shows the symbol, side and contract it would have traded.
- 5Deploy a bot. On the strategy, select Deploy bot. Pick the Alpaca account on the Account step and set a Budget per entry. Live bots need a Nyria Pro plan or a Premium strategy you have bought. The next alert becomes an order.
Watch the setup

Steps in the video
- 0:00Connect Discord. Open Integrations and select Connect Discord. It links your account, and Nyria asks Discord only for your identity and server list.
- 0:12Create a strategy. In My strategies, select Create strategy. Name it, then pick Discord as the alert source.
- 0:23Pick the channel. If the Nyria bot isn't in your server yet, select Add server. Pick the server, then the channel your alerts are posted in. Nyria reads that one channel and nothing else. If several people post there, add an author filter, or a keyword every alert carries.
- 0:48Choose what it trades. Choose your equity type and enter the instruments you want to send alerts for. Review it, then select Create draft.
- 1:11Check the format. On the Integration tab, assign a real channel message to each trade type. Select Check format to see what Nyria read: the ticker, the side and the action.
- 1:38Deploy a bot. Select Deploy a bot and set a budget per entry. Nyria Paper is free, so test there first. Post an alert in the channel and watch the order fill. When orders match your calls, deploy on your live broker.
What a Discord alert must say
Nyria needs the ticker, the side, and whether it opens or closes a position. It reads plain text or JSON in your own wording. There is no template to follow. For options, Provided in alert reads the strike, expiry and call or put. From my rules picks the contract.
Write the call the way the caller already does. BTO AAPL 345c 11/20, or a plain sentence. Nyria reads one channel, from any member, bot or webhook. It ignores threads, DMs and later edits.
An alert cannot set the size: each bot's budget per entry does. Exits come from your exit alerts.
A stock entry
NVDA long here 228
Buy NVDA. With the limit set to Alert price, the order goes out at 228. With Bid, Ask or Mid, Nyria prices it from the live quote.
An exit, written as a sentence
Taking profits on NVDA here
Close the open NVDA position, matched against what the bot is holding.
What Alpaca does with it
Alpaca connects with an API key, not a sign-in. A paper key works only on paper and a live key only on live. The same strategy can run on both.
Options go to Alpaca as single legs or spreads up to 4 legs. A spread is one order. Options trading must be turned on in the Alpaca account. Alpaca paper reaches Options Level 3, which covers four-leg structures.
Alpaca trades crypto spot in the pairs it lists. A crypto alert can open and close a coin position. Crypto orders go to Alpaca as good till canceled.
Each alert becomes a market or a limit order, as the strategy sets it. Duration is Day, GTC or fill or kill. Options orders go as Day. Crypto orders go as GTC. On live accounts, stops and targets are exit alerts. Alpaca paper takes stop, trailing stop, bracket and OCO orders on stocks and ETFs. Trailing stops need a trail of 0.1% or more. Alpaca paper takes stop-limit orders and percent-of-account sizing on spot crypto. An exit alert can flatten a position. A bots list in the alert picks which bots trade.
Questions
- Does Nyria read every message in the server?
- No. Only the channel you pick, and only the author or keyword you filter on. Replies and questions from everyone else place nothing. Messages elsewhere in the server are ignored.
- How does Nyria store my Alpaca key?
- The key is stored encrypted at rest. It reads the account and places and cancels orders. Revoke it in the Alpaca dashboard any time.
- Can I test before trading real money at Alpaca?
- An Alpaca paper account connects the same way as a live one. The same strategy can run on both, each bot in its own size.
- How fast does an alert become an order?
- Sub-second, alert to order.
From the sources
- Alpaca documents how orders are placed and managed. Alpaca: working with orders
- Inviting a bot needs the Manage Server permission. Discord: permissions
Next
- Paste an alert into the alert tester and see what Nyria reads.
- Longer walkthrough: Automate Discord options alerts.
- Related: Alpaca automated trading from alerts.
- Discord and Telegram alerts to broker tools compared.
- Alpaca page and Discord page.
Discord alerts, by account
Alpaca orders, by alert source
Send your first Discord alert
Trade and test free on paper. No card required.
