Using streaming/order updates ("action": "listen") to create new orders

Anyone know how to incorporate streaming for account and order updates (“action”: “listen”) into creating a new order?
For example, let’s say I wanted to place a market order if I have an open limit order that hadn’t filled.