I'm re-using a simple code I've shared previously.
When I use market orders everything is fine (it allocates 0.9 times my available cash, thus leverage =0.9 as expected from my context parameter)
But when I use LimitOrder, with a price +/- 0.5%, I'm always getting into margin, thus leveraging. Am I using LimitOrder Incorrectly
I've tried this in minute and daily mode, and same issue.