pyalgotrade, problem with self.enterlong(quantity=), quantity=(int.)

28 Views Asked by At

I just recently started using pyalgotrade

I backtest bitcoin historical data

In every trade I want to trade a fraction of bitcoin, but because the quantity argument of enterlong(), has int method, it converts for example 0.5 into 0 and raises an error.

What can I do?

Thanks a lot

0

There are 0 best solutions below