How to place an oder to a open price of candle

How to place an oder to a open price of candle

Use websocket. There is key ,x, and new candle is True.