Skip to content

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. 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. 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. 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. 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. 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

More TradingView to Tradier guides

Try a paper bot first

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