joshfraser / robinhood-to-csv

Python script to export Robinhood trades to a CSV file
MIT License
259 stars 109 forks source link

cumulative_quantity (var q) is not always integer #62

Open DeqingSun opened 3 years ago

DeqingSun commented 3 years ago

https://github.com/joshfraser/robinhood-to-csv/blob/4e664be77defa90432df285b27feea1165bb1418/profit_extractor.py#L102

When q is a float, the range fails. Forcing the q to int solve this bug.