Design a stock trading system where users can submit a desired trade price along with a timeout duration. The trade must complete before the timeout expires; if the timeout is reached without a successful trade, the trade is automatically cancelled. The system integrates with a third-party stock order API that…