Increase accuracy of order quantity calculation in CashBuyingPowerModel
Fixes #1680
This commit is contained in:
@@ -56,4 +56,5 @@ class BasicTemplateCryptoAlgorithm(QCAlgorithm):
|
||||
self.Liquidate()
|
||||
|
||||
btcHoldings = self.Portfolio.CashBook["BTC"].Amount
|
||||
self.Log("{0} - BTC holdings: {1}".format(str(self.Time), str(btcHoldings)))
|
||||
usdCash = self.Portfolio.CashBook["USD"].Amount
|
||||
self.Log("{0} - BTC holdings: {1} - USD cash: {2}".format(str(self.Time), str(btcHoldings), str(usdCash)))
|
||||
Reference in New Issue
Block a user