- Create a strategy with Telegram as its alert source. My strategies, then Create strategy: a strategy name typed in, Telegram picked as its alert source, the Nyria Test Alerts chat chosen and the keyword AMZN typed in, then Next to what it trades, where Stocks is picked.
Alerts to orders
Automate Telegram alerts to Alpaca
Nyria lets you auto trade each Telegram alert in your Alpaca account.

Setup steps
Add Nyria as a read-only admin of a Telegram group or channel you run. Pick that chat 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 Telegram. In Nyria, select Create strategy, pick Telegram and select Connect Telegram. Telegram opens a chat with @NyriaAlertsBot. Press Start, then tap Link in its reply.
- 3Add Nyria to your chat. Select Add Nyria to a group or Add Nyria to a channel. Make Nyria an admin. You need to own the chat or be an admin who can add admins. Nyria asks for one right, manage chat, and only reads. Pick the chat. Set an Author or Keyword filter if others post there.
- 4Check a real message. Choose a real message in the preview. The strategy stays inactive until Nyria reads one correctly. The Logs tab shows the symbol, side and contract it read.
- 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.
What a Telegram 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 poster already does. BTO AAPL 345c 11/20, or a plain sentence. Messages that other bots post in a group are not read.
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.
A coin entry
Long BTC here
Buy BTC spot at Alpaca, sized by each bot's budget per entry. Crypto orders go to Alpaca as good till canceled.
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
- What if a Telegram message is edited or arrives late?
- An edited message places no order, so post a new one. An alert over a minute old, or behind a newer one, opens nothing. A close in it still runs.
- Can a Telegram call buy crypto at Alpaca?
- Yes, in the pairs Alpaca lists. A call like Long BTC here opens a coin position, and an exit call closes it.
- Does a Telegram strategy need an Alpaca sign-in?
- No. Alpaca connects with an API key you generate. A paper key works only on paper and a live key only on live.
- Can one Telegram strategy run on Alpaca paper and live?
- Yes. Deploy one bot on each account, each in its own size. Alpaca paper reaches Options Level 3, which covers four-leg structures.
- 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
- Bots added to a group as admins always receive every message. Telegram: bot features
Next
- Paste an alert into the alert tester and see what Nyria reads.
- Longer walkthrough: Telegram alerts to your broker, automatically.
- Related: Alpaca automated trading from alerts.
- Discord and Telegram alerts to broker tools compared.
- Alpaca page and Telegram page.
Telegram alerts, by account
Alpaca orders, by alert source
Send your first Telegram alert
Trade and test free on paper. No card required.