mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-19 11:22:06 +08:00
When the cost basis was set to an integer the division in the calculation would floor down to the nearest integer. Ensuring that the number is a float during PerTrade's init will ensure that the calculation doesn't use integer division. Do the conversion to float in init rather than calculate, so that calling the builtin `float` is not added to any inner loops.