I have been working on a futures strategy and I feel that the ordering API could be more convenient for futures.
For equities I love
objective = opt.TargetPortfolioWeights(targets)
order_optimal_portfolio(objective, constraints=[])
However this is a little difficult to do with Futures. If you want to calculate TargetPortfolioWeights you need to calculate the notational value which is a little more involved. The other option would be to simply use order()
but then you have to keep track of which positions you currently are holding. It would be great if I could simply do:
objective = opt.TargetNumberPositions(targets)
If there is a way I can do this and I overlooked it, please let me know.