Guide / Checked Nov 2026
tastytrade API TradingView setup
tastytrade's API signs every request with an OAuth2 token. You sign in at tastytrade and select Authorize. Every account under that login is imported. No TradingView alert reaches tastytrade on its own. The alert posts to Nyria's webhook instead, and the bot places the order.
Official documentation
From alert to tastytrade order
- 1
Authorize tastytrade
Pick tastytrade in Integrations. Sign in at tastytrade and select Authorize. Every account under the login comes in.
- 2
Copy the strategy URL
Select Create strategy and choose stocks or options. Set what an entry and an exit do. Copy the strategy's URL and keep its token private.
- 3
Preview the alert first
With an MCP client, call nyria_preview_alert. It shows how Nyria reads an alert, and places nothing. Or send a test alert and select Check format.
- 4
Send it
Paste the URL into the TradingView alert's Webhook URL field. Code can POST the same body to the URL.
- 5
Check the order
Open the bot's Logs tab. Or call GET /v1/orders/{order_id} for status and fill.
Alerts tastytrade receives from Nyria
Market buy, JSON
{ "symbol": "SPY", "action": "buy", "order_type": "market" }Cancel, JSON
{ "action": "CANCEL", "instrument": "QQQ", "direction": "LONG" }Cancels the working QQQ long entry before it fills. tastytrade refuses MODIFY, so re-price with CANCEL, then a new OPEN.
Test the webhook with curl
curl -X POST https://trades.nyria.io/webhooks/YOUR_STRATEGY_TOKEN \
-H "Content-Type: application/json" \
-d '{"ticker": "SPY", "action": "buy"}'Add Nyria to Claude Code
claude mcp add --transport http nyria https://api.nyria.io/mcp --header "Authorization: Bearer YOUR_TOKEN"
What the tastytrade API needs
- An OAuth2 token on every request.
- Its old session login was shut off in February 2026.
- Sign in at tastytrade and select Authorize.
- Live accounts only. tastytrade has no paper route on Nyria.
- Crypto is disabled on tastytrade's API since June 29, 2026.
- Defined-risk spreads need Basic options permission or higher on a margin account.
Why an alert can't call it
- The alert itself can't reach tastytrade. It can only post a webhook.
- Something has to receive the webhook and place the order with the token.
- A paid TradingView plan with two-factor authentication on is required.
How Nyria places the order
- The webhook posts to the strategy's own URL.
- Nyria reads the ticker and action, or marketPosition and prevMarketPosition.
- Each alert sends the whole spread as one order, up to 4 legs.
- No MODIFY at tastytrade. A re-price is CANCEL, then a new OPEN.
- The token reads accounts, balances and positions. It places and cancels orders.
- Alert to order, sub-second.
For developers
- POST /v1/alerts sends an alert and gives back an order_id for each order. The token goes in a Bearer header.
- Claude, Cursor and any MCP client can preview and send alerts at https://api.nyria.io/mcp.
- Every endpoint and tool is listed at nyria.io/developers.
What it can't do
- Paper at tastytrade. There's no paper route, so use Nyria Paper.
- Order forms beyond market and limit. tastytrade accepts none.
- Stops and targets are exit alerts. An exit alert can flatten a position.
- Crypto. Off while tastytrade's API has it disabled.
- Futures. Not traded on Nyria.
- Changing a working order in place.
- Moving money.
Questions
- Does the tastytrade API work with TradingView?
- With Nyria. The alert posts to Nyria's webhook. The order goes out signed with the OAuth2 token.
- Do I need a tastytrade API key?
- No. Authorize at tastytrade once. Nyria holds the OAuth2 token that signs each request.
- Can I test the tastytrade API connection on paper?
- Not at tastytrade, which has no paper route on Nyria. Run the strategy on Nyria Paper first.
- Can I change a working tastytrade order from an alert?
- Not in place. Send CANCEL for the working entry, then a new OPEN.
- Can an AI agent send tastytrade orders?
- Yes, over Nyria's MCP endpoint. Preview with nyria_preview_alert first. It places nothing.
- Does Nyria send back a tastytrade order id?
- Through the REST API and MCP, yes. The webhook reply carries no order id.
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 tastytrade.
- Step by step for one account: how to automate TradingView to Nyria Paper.
Guides
How to connect TradingView to tastytrade
Authorize at tastytrade once. One webhook URL turns alerts into orders.
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 guideHow do I connect TradingView to tastytrade?
tastytrade's own sign-in, no code: alerts become stock and option orders, spreads up to 4 legs. Paper first.
Read guideHow do I connect Cursor to Nyria through MCP?
An mcp.json entry with the endpoint and your strategy's token as a Bearer header.
Read guideHow do I build a trading bot with Claude or Cursor?
The assistant writes the alert logic. Nyria places the orders. Paper first.
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 tastytrade guides
Try a paper bot first
No card required. Paper is free. Live trading from $15 a month.