Increase accuracy of order quantity calculation in CashBuyingPowerModel

Fixes #1680
This commit is contained in:
Stefano Raggi
2018-03-09 16:08:21 +01:00
parent a72f9dcda9
commit 1fcb4a6b96
6 changed files with 40 additions and 14 deletions
@@ -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)))