Kevin Guo
1 min readMay 2, 2019

--

Thanks for the response! If you replace the buy_holdings() method in main.py with this version of it: https://gist.github.com/2018kguo/47e7ff1a2be484f9a37fa3a3262fdac3, then the script will try to use up all remaining capital to purchase shares. If you, say, want to purchase $500 worth of shares for each stock the script intends to buy, then you can edit line 17 of the code i linked with num_shares = int(500/(stock_price*len(potential_buys)). Keep in mind that this may return an error if you don’t have enough money to complete the purchase.

--

--