Guide / Checked Nov 2026
How do I build a ChatGPT trading bot for my broker?
There are three routes, and only one has ChatGPT send the alert itself. On ChatGPT Business and Enterprise/Edu, add Nyria's MCP server as a custom server and ChatGPT sends alerts that a bot places at Charles Schwab, Tradier, tastytrade or Alpaca. On any ChatGPT plan, ask ChatGPT to write a TradingView strategy whose alerts hit Nyria's webhook, or write a script that calls a model and posts the alert itself. Start every route on a paper bot.
Official documentation
Pick a route and wire it
- 1
Create the strategy and a paper bot
Create a strategy and deploy a paper bot on Nyria Paper with Budget per entry set. Every strategy has its own token. For route one, choose AI Agent (MCP) as the alert source. For route two, choose TradingView. For route three, choose Custom webhook. Copy the URL from the Integration tab.
- 2
Route one: add the MCP server
In ChatGPT, go to Plugins, select the plus button, then Add custom MCP server. Add the Nyria MCP URL from the Integration tab, acknowledge the risk warning and publish. No Developer Mode is needed. On Business, only admins and owners create it. That URL carries the token, so treat it like a password.
- 3
Route two: let ChatGPT write the strategy
Describe your entry and exit rules and ask for a TradingView strategy. Read every line and backtest it in TradingView. Point its alert webhook at the strategy URL and use a plain message such as SPY long entry.
- 4
Route three: your own script
Have the script call the model of your choice, turn its answer into a short alert, and POST it to the strategy's webhook URL as JSON. The alert shows in the strategy's Logs tab.
- 5
Preview and test the wording
Over MCP, ask ChatGPT to preview the alert first; a preview places nothing. For routes two and three, paste the text into the alert tester before any bot sees it.
- 6
Watch the log, then go live
Read the strategy and bot Logs tabs for a stretch of sessions. Deploy a live bot only when every alert went where you expected.
Request to copy
A webhook alert from a script
POST https://trades.nyria.io/webhooks/YOUR_STRATEGY_TOKEN
Content-Type: application/json
{"ticker": "SPY", "action": "buy"}The same alert works as the words SPY long entry. The webhook reply carries no order id; the REST API and the MCP send tool hand one back.
Which route fits which plan
- Route one needs ChatGPT Business or Enterprise/Edu on the web. OpenAI lists full MCP there.
- Routes two and three need no ChatGPT plan, because ChatGPT only writes code or you call the model yourself. Route two needs a paid TradingView plan for webhook alerts.
- Claude and Cursor connect to the same strategy over MCP if your ChatGPT plan can't.
What ChatGPT can't decide
- The bot sets size from Budget per entry. An alert names the trade and the side.
- OpenAI says ChatGPT may ask for confirmation on write actions, depending on app permissions and context. Preview instead of counting on it.
- Sending the same alert twice in a row sends it once. Bursts are refused.
- Live bots place market and limit orders only. Nyria attaches no stop order to a live entry.
Questions
- Does ChatGPT Plus connect to Nyria?
- OpenAI lists custom MCP server connections for Business and Enterprise/Edu on the web. On another plan, take route two or three, or connect Claude or Cursor to the same strategy.
- Does ChatGPT confirm before it sends?
- OpenAI says it may ask, based on app permissions and the action's context, and may block some risky actions. Preview the alert first rather than wait for a prompt.
- Can my script get the order id back?
- Not from the webhook; its reply carries none. Send through the REST API, or over MCP, to get an order_id per leg.
- Can ChatGPT attach a stop to a live entry?
- No. Live accounts take market and limit entries. A stop in an alert is refused at a live account and never swapped for a market order. Advanced order types run on paper accounts today.
Next
- Paste an alert into the alert tester to see how Nyria reads it.
- Step by step for one account: how to automate Webhook to Alpaca.
- Step by step for one account: how to automate Webhook to Schwab.
Guides
Python webhook alerts to your broker
The webhook URL, the documented fields, a minimal requests sender, the response and the Logs tab, paper first.
Read guideHow do I connect ChatGPT to Nyria through MCP?
Plugins, Add custom MCP server, your strategy's MCP URL, then a paper alert.
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 connect Claude or ChatGPT to my broker?
Claude or ChatGPT sends the alert over MCP, and a Nyria bot places the order at your broker.
Read guideTry a paper bot first
No card required. Paper is free. Live trading from $15 a month.