Fractional Shares In Backtesting.py

Опубликовано: 24 Март 2026
на канале: Chad Thackray
4,129
96

We detail how to trade fractional shares in backtesting.py. This is useful for assets like Bitcoin with a high unit price, and to ensure that our backtests are accurate.

⭐ Code:
https://github.com/ChadThackray/fract...

Backtesting.py Free Course:
   • Backtesting.py - Full course in python  

Timestamps:
00:00 - Intro
00:55 - The problems with only trading full shares
03:24 - Adjusting our data to trade fractions
07:38 - Adjusting trade data by our scale factor