Binance.US Guide
Connect TradingView to Binance.US (Spot, Margin, and Futures) using TradeAdapter’s direct API integration. This guide covers strategy and indicator alerts with the Message Generator.
Video walkthrough #
Coming soon
A video walkthrough for Binance.US + TradingView will be added here. Meanwhile, follow the steps below.
1 — Create Binance.US API keys #
Binance.US uses API Key + Secret. Create a key in API Management, whitelist the TradeAdapter IP, and enable the trading permissions you need.
-
Log in to Binance.US
Go to binance.us and sign in.
-
Create API key
Open API Management and create a new API key. For step-by-step instructions for a Real account, see How to create API (Binance flow is similar).
-
Whitelist TradeAdapter IP
Add the TradeAdapter IP to the whitelist:
35.75.198.16 -
Enable trading permissions
Enable Spot & Margin and Futures Trading as needed for the markets you will trade. Keep withdrawals disabled.
-
Save your credentials
Copy your API Key and Secret. The secret is shown only once. You will use them in the alert message as
binance_api_keyandbinance_secret.
TradeAdapter: Connect TradingView to Binance.US (full steps)
2 — Select the Binance.US symbol in TradingView #
Open TradingView and search for the symbol that matches the instrument you trade on Binance.US. The {{ticker}} placeholder will send this symbol to TradeAdapter. Use the correct market type — Spot, Margin, or Futures — and set order_market in your message to match.
Important
The symbol must exist on Binance.US for the chosen market. Check min quantity, max quantity, and step size in the symbol list.
Binance.US — SPOT Symbols (min/max qty, step size, min order value).
3 — Add your strategy or indicator #
Binance.US supports both strategy and indicator alerts. Load your Pine Script onto the chart so it generates the trading signals.
Use the Binance.US Message Generator. One alert with trigger “Order fills only”. TradingView fills action, size, and price via {{strategy.order.action}}, {{strategy.order.contracts}}, {{strategy.order.price}}.
Use the same Binance.US Message Generator. Set order_action and order_contracts manually in the message. Create one alert per action (e.g. Buy, Sell).
Not sure if you have a strategy or an indicator? See Indicator vs Strategy.
4 — Configure order size #
Set your strategy’s position size so that {{strategy.order.contracts}} meets the symbol’s minimum and step size on Binance.US. For Limit orders, ensure {{strategy.order.price}} respects the symbol’s precision. For indicators, set order_contracts in the message accordingly. Check the SPOT symbols table for min qty, max qty, and min order value.
5 — Create the TradingView alert #
Press Alt + A (or the alarm clock icon) to create a new alert.
Strategy → one alert
Under Condition, select your strategy and set trigger to “Order fills only”. TradingView fills action, size, and price via the strategy placeholders.
Required: Webhook URL + Message
In Notifications, enable Webhook URL and paste: https://tradeadapter.com/api/v3/YOUR_TRADEADAPTER_KEY. Your TradeAdapter key is in your TradeAdapter profile. Paste the JSON message in the Message field — build it with the Binance.US Message Generator.
Important: Recreate the TradingView alert each time you change your Pine Script strategy parameters.
Alert message (Strategy) #
Use this template for strategy-based alerts. Replace the placeholder values with your Binance.US API key and secret. Set order_market to Spot, Margin, or Futures. For Margin, set isolated_margin to "Yes" or "No". Keep the TradingView placeholders as-is.
{
"binance_api_key": "PUT YOUR BINANCE.US API KEY HERE",
"binance_secret": "PUT YOUR BINANCE.US SECRET HERE",
"real_order": "No",
"order_market": "Spot",
"order_type": "Market",
"isolated_margin": "No",
"exchange": "binanceus",
"ticker": "{{ticker}}",
"time": "{{timenow}}",
"order_contracts": "{{strategy.order.contracts}}",
"order_action": "{{strategy.order.action}}",
"order_price": "{{strategy.order.price}}"
}
Message fields explained #
| Field | Description |
|---|---|
binance_api_key |
Your Binance.US API Key from API Management. |
binance_secret |
Your Binance.US Secret Key (from the same API key). |
real_order |
"Yes" executes on Binance.US. "No" creates a test order (Spot: test on real account; Margin: no test support — use smallest real order; Futures: uses Binance Testnet). |
order_market |
"Spot", "Margin", or "Futures" — must match the symbol and market you trade. |
order_type |
"Market" or "Limit". For Limit orders, order_price is used as the limit price. |
isolated_margin |
Only for Margin orders. "Yes" = isolated margin, "No" = cross. Keep "No" for Spot or Futures. |
exchange |
Must be "binanceus" so TradeAdapter routes the order to Binance.US. |
ticker, time |
TradingView placeholders — keep as {{ticker}}, {{timenow}}. |
order_contracts, order_action, order_price |
Strategy: use {{strategy.order.contracts}}, {{strategy.order.action}}, {{strategy.order.price}}. Indicator: set manually. |
6 — Execute & monitor #
Test orders
For Spot: test orders are created on your real Binance.US account (no real execution). For Margin: Binance.US does not support test orders — use the smallest real order to test. For Futures: use Binance Futures Testnet and set "real_order": "No"; you need a Testnet API key.
-
Start with test orders
Set
"real_order": "No"and trigger a few alerts. Check MyTrades to see how TradeAdapter interprets your signals. -
Verify on Binance.US
When you set
"real_order": "Yes", monitor your Binance.US account to confirm orders execute as expected. -
Recreate alerts after changes
If you change strategy parameters or the message, delete and recreate the TradingView alert so the new values are applied.
Important notes #
API security — Never share your Secret. Keep withdrawals disabled. Whitelist only the TradeAdapter IP
35.75.198.16.
Webhook URL — Use
https://tradeadapter.com/api/v3/YOUR_KEY. Your key is in your TradeAdapter profile.
Recreate alerts after changes — If you change strategy parameters or message fields, delete and recreate the TradingView alert.
All setup guides