Guide / Checked Nov 2026
Tradier API TradingView setup
Live Tradier accounts connect to Nyria by broker sign-in. Paper uses Tradier Sandbox credentials. A TradingView alert can only send a webhook. Nyria receives it and places the order through Tradier's API.
Official documentation
From alert to Tradier order
- 1
Get Tradier access
For live, sign in at Tradier from Nyria's Tradier card. For paper, get a sandbox access token from Tradier's developer portal. Paste it into Nyria.
- 2
Copy the strategy URL
Select Create strategy and pick the alert source. Every strategy has its own URL. The token at the end is the only authentication, so keep it private.
- 3
Send the alert
From TradingView, paste the URL into the alert's Webhook URL field. From code, POST the same JSON to the URL.
- 4
Read the result
GET /v1/orders lists recent orders, newest first. GET /v1/orders/{order_id} shows one order with each bot's status and fill.
- 5
Go live
Deploy a second bot on the live Tradier account. Live bots need a Nyria Pro plan, or a Premium strategy you've bought.
Send an alert from TradingView or curl
Webhook, from TradingView or curl
curl -X POST https://trades.nyria.io/webhooks/YOUR_STRATEGY_TOKEN \
-H "Content-Type: application/json" \
-d '{"ticker": "SPY", "action": "buy"}'TradingView strategy template
{
"action": "{{strategy.order.action}}",
"marketPosition": "{{strategy.market_position}}",
"prevMarketPosition": "{{strategy.prev_market_position}}",
"instrument": "{{ticker}}",
"price": {{close}}
}What the Tradier API needs
- A live connection uses Tradier's own sign-in.
- The sandbox takes an access token from Tradier's developer portal.
- Fill or kill goes as Day.
- Tradier sandbox takes stop, bracket and OCO orders on stocks and ETFs.
- Bracket orders need a limit or stop entry.
- Stocks and options up to 4 legs trade at Tradier.
Why an alert can't call it
- A TradingView alert cannot call a broker API. It can only send a webhook.
- Something has to receive that webhook and place the order.
- Only TradingView's published placeholders get substituted. Anything else arrives as literal text.
- The free TradingView plan can't send webhooks.
How Nyria places the order
- A POST with a ticker and an action is enough.
- Plain text such as SPY long entry works too.
- Send marketPosition and prevMarketPosition and Nyria works out the action and direction.
- Add "order_type": "limit" and a price to an OPEN or CLOSE with a direction.
- The order then rests at Tradier until it fills or is canceled.
- Alert to order, sub-second.
For developers
- The REST API uses the webhook's token as a Bearer header. POST /v1/alerts gives back an order_id.
- GET /v1/positions, GET /v1/orders and GET /v1/orders/{order_id} read what the bots did.
- Endpoints, the MCP tools and the TradingView template are at nyria.io/developers.
What it can't do
- Live Tradier accounts take market and limit orders.
- Order forms beyond market and limit on live accounts. Stops and targets are exit alerts.
- Crypto or futures. Tradier doesn't offer them.
- An order id from the webhook reply. Use the REST API.
- Investment advice or trade recommendations.
Questions
- Does the Tradier API work with TradingView?
- Not directly. A TradingView alert can only send a webhook. Nyria receives it and places the order at Tradier.
- Do I need a Tradier API key?
- For live, no. Live accounts connect by Tradier's own sign-in. For paper, the sandbox takes an access token.
- Can I send alerts from my own code instead of TradingView?
- Yes. POST JSON to the strategy URL. Or call the REST API with a Bearer header.
- Does Nyria send back a Tradier order id?
- Through the REST API, yes. POST /v1/alerts gives back an order_id for each order it creates. The webhook reply carries none.
- Can Claude or Cursor place Tradier orders?
- Yes. Nyria's MCP endpoint takes the strategy token. A live bot turns a sent alert into a real order.
- Is the Tradier sandbox the same as Nyria Paper?
- No. The sandbox is Tradier's own test environment with its own credentials. Nyria Paper needs no login, key or token.
Next
- Paste an alert into the alert tester to see how Nyria reads it.
- Write a TradingView message with the alert builder.
- Step by step for one account: how to automate TradingView to Tradier.
- Step by step for one account: how to automate TradingView to Nyria Paper.
Guides
How to connect TradingView to Tradier
Tradier sign-in for live, sandbox credentials for paper. One webhook URL for the alerts.
Read guideHow 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 guideSend a TradingView webhook to Tradier
Live sign-in or a sandbox token, stocks and options up to 4 legs, and a worked example on paper then live.
Read guideHow do I connect Claude to Nyria through MCP?
A custom connector with your strategy's MCP URL, or one Claude Code command.
Read guideHow do I test a trading webhook with curl?
One curl POST on Nyria Paper. Read the reply, then the Logs tab.
Read guideHow do I send trade alerts from my own code with a REST API?
POST /v1/alerts with a Bearer token. The reply carries an order_id you can poll.
Read guideMore TradingView to Tradier guides
Try a paper bot first
No card required. Paper is free. Live trading from $15 a month.