Skip to content
  • 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.
Tradier logo

Alerts to orders

Automate Discord alerts to Tradier

Nyria lets you auto trade each Discord alert in your Tradier account.

Stocks and ETFsOptions up to 4 legs
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
In #options-alerts, Desk posts BTO SPY 780C 11/20 @ 2.15. In #nyria-fills, Nyria posts Filled on Nyria Paper: Buy to open SPY 780C 11/20.

Setup steps

Invite the Nyria bot to a Discord server you run. Pick the alerts channel in a Nyria strategy. Then connect your Tradier account in Nyria. Each call posted there becomes an order in your own Tradier account. Test it free on Nyria Paper or on Tradier's sandbox first.

  1. 1Connect Tradier. Open Integrations and select the Tradier card. Select Connect live account and approve access on Tradier's own screen (OAuth). For the sandbox, select Connect paper account. Paste the sandbox Access token from developer.tradier.com.
  2. 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.
  3. 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.
  4. 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.
  5. 5Deploy a bot. On the strategy, select Deploy bot. Pick the Tradier 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

How to automate Discord trade alerts to your broker
Connect Discord, pick the alerts channel, check the alert format and deploy a bot. It runs on Nyria Paper first.
Steps in the video
  1. 0:00Connect Discord. Open Integrations and select Connect Discord. It links your account, and Nyria asks Discord only for your identity and server list.
  2. 0:12Create a strategy. In My strategies, select Create strategy. Name it, then pick Discord as the alert source.
  3. 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.
  4. 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.
  5. 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.
  6. 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 Tradier does with it

A live Tradier account connects through Tradier's own sign-in (OAuth). There is no key to paste. The sandbox uses an access token from Tradier's developer portal. It is a separate account from the live one. Nyria receives access that places and cancels orders and cannot move money.

Options go to Tradier as single legs or spreads up to 4 legs. A spread is one order. SPX trades on the PM-settled SPXW chain. Tradier needs options approval at the level the trade requires. Short stock or short spreads need margin.

Nyria can't trade crypto at Tradier, so a crypto alert places no order there. Use Alpaca or Nyria Paper for crypto.

Each alert becomes a market or a limit order, as the strategy sets it. Duration is Day or GTC. Fill or kill goes as Day. On live accounts, stops and targets are exit alerts. Tradier sandbox takes stop, bracket and OCO orders on stocks and ETFs. Bracket orders need a limit or stop entry. 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.
Does Nyria hold my Tradier login?
No. You sign in at Tradier. Nyria gets a token that places and cancels orders. It can't move money, and it's encrypted at rest.
Can I test before trading real money at Tradier?
Tradier's sandbox connects as a paper account. The same strategy can run there before the live account. Nyria Paper works too.
How fast does an alert become an order?
Sub-second, alert to order.

From the sources

Next

Tradier orders, by alert source

Send your first Discord alert

Trade and test free on paper. No card required.