Set up the trade and let it execute? What are you trying to accomplish? Should be easy in IB and I would assume most other brokers.
You need to create combo contract for it first https://www.interactivebrokers.com/en/software/mobileandroid/trade/create combos.htm for doing it using api: https://interactivebrokers.github.io/tws-api/spread_contracts.html#bag_stk