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.

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store