BLACK FRIDAY IS BACKNov 24 to 30. Join the list and get in a day early.Join the list

Order expiry (dt=), by exchange

Autoview · Guide · Updated October 30, 2026

You want a limit order that gives up at the end of the day instead of resting for a week. On some exchanges you can give the order an expiry with dt=:

b=buy p=-1% dt=2026-11-02T20:00

This page comes from the Autoview integrations code that runs on our servers today. We read the code; we did not run each exchange live for this guide.

Autoview passes your date through as written

Autoview does not read or convert the value. Whatever you type after dt= goes to the exchange's own expiry field unchanged. So the format is the exchange's, not Autoview's, and a date the exchange cannot read fails there, not in Autoview. Check the expiry format in your exchange's API docs, and try the line on a practice account before a live one.

The five exchanges that read dt=

  • Capital.com. Sets the good-till date on a limit or stop working order. A market order drops it.
  • Charles Schwab. Sets the order's cancel time. Autoview sends it whatever the order type.
  • Coinbase Advanced. Turns a limit or stop-limit order into its good-til-date version, with your value as the end time. A market order drops it. The code notes the format as year-month-day, then T, then hours and minutes.
  • OANDA. Sets the time in force to good-til-date with your value as the expiry. This applies to a market order too, and it replaces a t=fok or t=ioc choice. If you want fill-or-kill on OANDA, leave dt= off.
  • TradeStation. Sets the duration to good-til-date with your value as the expiration. With eh= set for extended hours, it uses TradeStation's extended-hours good-til-date instead. See extended hours by exchange for what eh=1 does on each broker.

Every other exchange ignores dt=

On the rest, including Binance, Bybit, Kraken, KuCoin, OKX, Tradovate and Hyperliquid, dt= does nothing. The order goes out with its normal time in force and rests until it fills or you cancel it. To clear stale orders there, send a cancel from a later alert, for example with cm= and cmo= or by id=.

Two things to watch

  • dt= is not a freshness check. A late alert with dt= still places its order. The late and resent alerts guide covers what Autoview does with an alert that arrives late.
  • A copied line can change meaning. The same dt= value can be valid on one exchange and rejected on another, because each reads its own format.

Test it once before you rely on it

Add d=1 to see how Autoview reads your line without sending it, then place one small order on a practice account and check its expiry on the exchange. The log guide shows where to look. Per-exchange details sit in the OANDA and Capital.com command references.

Open the command reference