Hi,

I am trying to send leveraged orders using kraken as Broker. Bur I get the following error:
Insufficient buying power to complete order

I tried to set:

self.UniverseSettings.Leverage = 2

and

self.Securities["BTCUSD"].SetLeverage(2)

But still doesn't work.

What I am doing wrong? Simple script attached.

Thank you.