What I'd like to do:
Per title, seems I can get close using a bracket order, but with a time-based (GAT) profit taking order on the up side instead of a traditional limit order.
Concerns:
If not with a bracket order, is this doable with a parentId for the entering limit order + OCA group for the bracketing orders? (Again, not sure bracketing orders would adjust size in case of partial fills of parent.)
Thank you.
- Enter using a limit order that expires after [30] minutes. Attach a stop loss.
- Exit automatically after [4] hours using a market order (which would cancel the stop loss).
Per title, seems I can get close using a bracket order, but with a time-based (GAT) profit taking order on the up side instead of a traditional limit order.
Concerns:
- Does the API force the profit taking order to be a limit order, or can I submit another order type such as a GAT?
- If entering limit order is partially filled and expires, ideally bracketing orders would be active and have sizes adjusted to match filled size. My fears are that:
- bracketing orders will not activate till parent fills completely
- bracketing order sizes will not be adjusted to reflect parent's partial fill
- bracketing orders will be canceled on parent expiry.
If not with a bracket order, is this doable with a parentId for the entering limit order + OCA group for the bracketing orders? (Again, not sure bracketing orders would adjust size in case of partial fills of parent.)
Thank you.