I dont undertstand the return of CalculateOrderQuantity,

If I have

self.CalculateOrderQuantity(self.asset1,  1)

its return

69777

self.Portfolio.Cash / self.Securities[self.asset1].Price

its return

62699

The values are

self.Portfolio.Cash = 100000
self.Securities[self.asset1].Price = 1.59491

shouldn't it be the same?

Author