Is it possible to set a stop loss on a position opened using the setDesiredPositions
API method?
Actually, we don’t have that (currently). I think the idea behind setDesiredPositions was that most of the trading and market-monitoring logic would reside in your software, and thus stop-losses would be implemented by changing the setDesiredPositions quantities. And also: having the stop loss implemented on the C2 side leads to all sorts of complexities like: how does your software know when a stop is hit, etc? I.E. “Your side” would quickly get out of sync with the “C2 side.”
That’s probably why the feature doesn’t exist in the API at this time.