Skip to content
Binance logo

Alerts to orders

Automate Discord alerts to Binance

Nyria places Discord alerts as spot orders in your own Binance account. It reads one channel in a server you run. The exchange connects with a System generated API key.

Crypto spot
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 Binance account in Nyria with your own Binance API key. Each call posted there becomes a spot order in your own Binance account. Nyria connects live Binance accounts only, so test it free on Nyria Paper first.

  1. 1Connect Binance. In Binance, open API Management and create a System generated key. Turn on Reading and Spot trading, leave Withdrawals off, and add Nyria's IP address so the key can trade. In Nyria, select Integrations, then the Binance card, paste the API key and secret key, then select Connect Binance.
  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 and side it would have traded.
  5. 5Deploy a bot. On the strategy, select Deploy bot. Pick the Binance 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 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. Spot crypto can't be shorted, so a short alert closes the long.

Write the call the way the caller already does. Buy ETH, or a plain sentence that names the coin. 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 crypto entry

Long BTC here

Buy BTC spot. The message has no size, so each bot's budget per entry sets it.

An exit, written as a sentence

Closing BTC here

Close the open BTC position, matched against what the bot is holding.

What Binance does with it

Binance connects with an API key, not a sign-in. Nyria signs requests with HMAC keys and stores both the API key and secret key encrypted at rest. The key needs an IP restriction, so add Nyria's fixed IP address or Binance limits it to reading. Nyria places and cancels orders and has no feature that moves money. Binance and Binance US are separate exchanges. Binance US has its own page.

Options aren't offered on this connection. An options alert places no order at Binance.

Nyria trades the spot pairs Binance lists.

Each alert becomes a market or limit order, as the strategy sets it. Nothing waits at the broker between alerts. The exit comes from your alert.

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.
Which Binance API key does Nyria need?
A System generated key. Nyria signs with HMAC keys. Turn on Reading and Spot trading, and leave Withdrawals off.
Why can't my Binance key place orders?
Binance limits keys without an IP restriction to reading. Add Nyria's IP address to the key so trading works. Email contact@nyria.io for the address.
Which Binance pairs can a Discord alert trade?
Any spot pair Binance lists, once you add it. Each alert becomes a market or limit order, as the strategy sets it.
Does Nyria hold my Binance login?
No. A Binance API key doesn't need your password. Nyria stores the API key and secret key encrypted at rest.
Can I test before trading real money at Binance?
Nyria connects live Binance accounts only, so run the strategy on Nyria Paper first. Nyria Paper is free, with no card, and runs the same strategy against simulated fills.
How fast does an alert become an order?
Sub-second, alert to order.

From the sources

Next

Binance orders, by alert source

Send your first Discord alert

Trade and test free on paper. No card required.