I've shared copy-able G sheet with full script that calls stock trading API.
https://docs.google.com/spreadsheets/d/1RLvSmDEfS7U2OrqlUYvv...
I'm sure many of you guys do some trick over stocks in spreadsheet. Full explanation: https://medium.com/automation-generation/manage-your-stocks-...