Skip to content

Guide

Does Binance have an API?

Yes. Binance has an API for spot trading. You create a System generated key in API Management. Nyria connects Binance with the API key and secret key. A TradingView alert can't call the API itself. It posts to Nyria's webhook, and the bot places the order.

Official documentation

Connect Binance in six steps

  1. 1

    Open API Management

    Log in to Binance, select the profile icon, then Account. Open API Management and select Create API.

  2. 2

    Pick the key type

    Choose System generated. Enter a label and verify with 2FA.

  3. 3

    Set the permissions

    Turn on Spot trading. Leave withdrawals off. Restrict the key to trusted IPs.

  4. 4

    Add Nyria's address

    Email contact@nyria.io for the IP address, then add it to the list.

  5. 5

    Connect Binance in Nyria

    Open the Binance card on Integrations. Paste both keys, then select Connect Binance.

  6. 6

    Point TradingView at Nyria

    Create a strategy with TradingView as the source. Under Notifications, tick Webhook URL, paste the strategy's URL, then select Apply.

What the API does

  • Binance's API reads the account and places spot orders.
  • Each request carries your API key and a signature.
  • The secret key signs each request.
  • Each key has its own permissions, set when you create it.

Why an alert can't call it

  • A TradingView alert can't call the Binance API itself.
  • It sends a webhook. Something has to place the order.
  • Nyria is that receiver, and it never places an order by itself.
  • Your alerts and strategy rules decide every entry and exit.

How Nyria connects Binance

  • You paste the API key and the secret key once.
  • Nyria stores the keys encrypted at rest.
  • It reads the account and places and cancels orders.
  • It has no feature that moves money.
  • A key with no IP restriction is limited to reading.

What it can't do

  • Use a Binance US account. That is a separate connection.
  • Run on a Binance paper account.
  • Short sell on spot.
  • Move money. Withdrawals stay off.

Questions

Can a TradingView alert call the Binance API?
No. An alert sends a webhook. Nyria receives it and places the order.
Does Nyria need withdrawals turned on?
No. Leave withdrawals off.
Why does Binance need an IP restriction?
A key with no IP restriction is limited to reading. Add Nyria's address so trading works.
Which key type works?
System generated. Nyria signs with HMAC keys.
Can I test before using real money?
Yes. Run the strategy on Nyria Paper first. It's free.
Does this cover Binance US?
No. Binance US is a separate connection with its own key.

Next

Try a paper bot first

No card required. Paper is free. Live trading from $15 a month.