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
Open API Management
Log in to Binance, select the profile icon, then Account. Open API Management and select Create API.
- 2
Pick the key type
Choose System generated. Enter a label and verify with 2FA.
- 3
Set the permissions
Turn on Spot trading. Leave withdrawals off. Restrict the key to trusted IPs.
- 4
Add Nyria's address
Email contact@nyria.io for the IP address, then add it to the list.
- 5
Connect Binance in Nyria
Open the Binance card on Integrations. Paste both keys, then select Connect Binance.
- 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
- Paste an alert into the alert tester to see how Nyria reads it.
- Step by step for one account: how to automate TradingView to Alpaca.
- Step by step for one account: how to automate TradingView to Nyria Paper.
- Binance integration.
Guides
How broker API trading works
What a broker API does and does not do, and the receiver that reads your alerts and places the orders for you.
Read guideHow do I send TradingView webhooks to Binance?
Paste a Nyria strategy URL into your alert. Nyria places the Binance order.
Read guideCan Nyria withdraw money from my broker account?
No. Nyria reads balances and sends orders. Your cash stays at your broker.
Read guideWhy does Nyria say Binance blocked its IP address?
Add Nyria's IP address, 116.202.227.157, to the Binance key's trusted list.
Read guideHow do I make a Binance.US API key for Nyria?
Make a system-generated Binance.US key with Spot Trading on and withdrawals off.
Read guideWhy does Nyria say Binance rejected this key?
Copy the Binance key and secret again. Check the key type is System generated.
Read guideTry a paper bot first
No card required. Paper is free. Live trading from $15 a month.