Skip to content

Guide

Automate 0DTE SPY options alerts

Send the call to Nyria from a Discord server or Telegram chat you run, or from a TradingView alert, and a bot places it as an order at Charles Schwab, tastytrade or Tradier, sized by the Budget per entry. A same-day SPY or SPX call lives for minutes, and the gap between reading it and placing it is where the price moves. This guide goes from the broker connection to a live bot, and lists every reason the bot places nothing.

Automate an iron condor from one TradingView alert
Two short legs picked by delta and two wings picked by strikes from those legs, so one entry alert opens all four.

What you need

  • A Nyria account. For SPX, a connected Charles Schwab, tastytrade or Tradier account with options approval; Alpaca trades SPY, QQQ and IWM options but not SPX.
  • An alert source that posts the call: a Discord server you run, a Telegram group or channel you run, or a TradingView alert with a webhook.
  • A budget per entry that covers one contract. A same-day SPX contract near the money often costs more than $1,000; SPY is about a tenth of that.

Step by step

  1. 1

    Connect a broker

    Open Integrations and sign in at Charles Schwab, tastytrade or Tradier, or paste an Alpaca API key for SPY only. Nyria Paper needs no broker, so the strategy can run before you connect one.

  2. 2

    Create the strategy, pick the source

    Create a strategy that trades options and pick Discord, Telegram or TradingView as the alert source. For Discord, invite the Nyria bot to a server you run and choose the channel; for Telegram, add the bot to the group or channel; for TradingView, copy the webhook URL the strategy shows.

  3. 3

    Tell it what an alert means

    A same-day alert usually names the contract in full: ticker, strike, call or put, and today's date. On Provided in alert, Nyria reads those as written. A TradingView alert, or one that leaves the strike or expiry out, uses the strategy's own rules, an expiration 0 to 31 trading days out, which for a 0DTE strategy means setting the range to 0 days.

  4. 4

    Check the format

    Paste a real call from the channel, select Check format, then Check and save. Nyria shows the ticker, strike, expiry and side it found. The strategy turns Active when every side passes.

  5. 5

    Test on paper

    On the strategy, select Deploy bot. If the switch at the top says Live, select Paper. Set the Budget per entry, select Next, then Deploy on Nyria Paper. Let a few same-day calls fire and read each fill on the bot's Logs tab next to the alert that caused it.

  6. 6

    Go live

    Deploy a second bot on the broker account with the same sizing. Exits match the entry leg for leg: a sell alert for the same contract closes what the buy alert opened.

What a same-day alert looks like

Discord and Telegram name the contract, dated Friday Oct 23, 2026 here. A TradingView alert says open and long. Your rules pick it.

Discord or Telegram, SPY

BTO SPY 772c 10/23 @ 1.85

Discord or Telegram, SPX

BTO SPX 7700c 10/23 @ 12.40

TradingView, as JSON (your rules pick the contract)

{ "ticker": "SPX", "action": "OPEN", "direction": "LONG" }

What the bot does with it

  • Reads the ticker, the strike, the side and the date. 10/23 on Oct 23 is today's expiration, so the order goes to the same-day chain: SPXW for SPX, the daily SPY contract for SPY.
  • Sizes the order from the Budget per entry. At $1.85 a contract, a $500 budget per entry buys 2 contracts, since one contract is 100 shares and the bot never rounds up.
  • Places a market order at the broker, or a limit order at the price the alert names if the strategy is set to limit. The fill, the price and the order id land on the Logs tab.
  • Closes on the exit alert. STC SPY 772c, or a plain sell with no contract, closes the open position in the same contract. Nothing waits at the broker between alerts: the next move is the next alert.
  • Stops at the close. A same-day contract that is still open at 4 pm ET expires at the broker. Nyria does not close it for you, so the exit alert has to arrive before the bell.

When the bot places nothing

Each refusal is written to the Logs tab in these words, next to the alert that caused it. Nothing is ordered on any of them.

  • The option chain has no delta for the strikes in the strategy's range, so a delta target cannot be met.

    Nyria skipped this entry. The options data has no delta for the contracts in your range, so it can't pick the delta your strategy asks for. Nothing was ordered.

  • The nearest contract sits more than 0.25 delta from the target, which is common in the last hour of a 0DTE session.

    Nyria skipped this entry. Your strategy asks for a 0.30 delta and the closest available is 0.62, too far to stand in for it. Nothing was ordered.

  • The contract the strategy picked has no live bid and ask.

    Nyria skipped this entry. No live quote was available for the option your strategy picked. Nothing was ordered.

  • The call arrives before 9:30 am ET, after 4 pm ET, or on a market holiday.

    Options market is closed

  • One contract costs more than the Budget per entry.

    One SPY contract costs $185, more than this bot's $150 budget per entry. Raise it to at least $185.

Questions

Which brokers trade SPX 0DTE?
Charles Schwab, tastytrade and Tradier trade the PM-settled SPXW chain. Alpaca trades options but not SPX, so an SPX strategy on an Alpaca account places nothing.
What if the alert names no expiration?
A Discord or Telegram alert with no date takes the nearest listed one, which can be today's (0DTE), even late in the day. A TradingView alert never names one. The strategy's own rules pick it, 0 to 31 trading days out.
Does the bot close a 0DTE position before it expires?
Only on an exit alert. Otherwise the contract runs to the close and the broker settles it, so the alert source has to send the exit before 4 pm ET.
Can one alert open a spread?
Yes, up to 4 legs on one expiration with every leg the same quantity: an SPX iron condor or a SPY straddle in one order. Ratio spreads, calendars and diagonals aren't supported.
What does it cost?
Paper is free. Live trading from $15 a month.

Related pages

The source and broker pair most 0DTE rooms use is Discord to Charles Schwab, with the same steps for tastytrade and Tradier.

Run 0DTE on paper first

Trade and test free on paper. No card required.