kernc / backtesting.py

:mag_right: :chart_with_upwards_trend: :snake: :moneybag: Backtest trading strategies in Python.
https://kernc.github.io/backtesting.py/
GNU Affero General Public License v3.0
5.04k stars 987 forks source link

self.buy(size=10.15) `size` can it be a floating point number greater than 1? #1129

Open kxbin opened 3 months ago

kxbin commented 3 months ago

The size param can it be a floating point number greater than 1?

coder145 commented 3 weeks ago

No, it has to be an integer if it is to be greater than 1.