Trigger orders on other stocks?

If I want to submit a limit order of MSFT that, when it executes, will trigger a market order on SPY, is this possible?

I see that there are OTO orders that can trigger subsequent child orders, but only for the same instrument.

Hi, you could do this with code. you could listen to trade_updates and when your first order is filled, you could submit a new order

OTO is not relevant for this case (nor OCO or Bracket)

I certainly could do the subsequent order submission in code, but an OTO child market order would be submitted and filled faster. Sometimes that latency is important.

yes of course but that is not the purpose of the OCO order. it’s for the same stock, not to trigger other stocks