mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-08 11:16:58 +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.