![]() |
|
[Python] Automating investing with M1Finance & Python - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Python] Automating investing with M1Finance & Python (/showthread.php?tid=5955665) |
Automating investing with M1Finance & Python - Dark - Apr 1, 2019 M1 Finance is a US-based stock brokerage that offers fractional sharing and a different type of investing strategy compared to other brokerages. There is no API so I decided to create a Python wrapper for it. I've implemented a trading script that will calculate the inverse of a particular stock (SPXS) and determine a 'base' amount to invest each day. If the S&P 500 is up for the day, the bot invests less for that particular day. These are just my particular options as the wrapper allows you to write just about anything you want. I'll be updating my portfolio status over the week here during my test run Output: Code DEBUG: Beginning User LoginEnding amount (4/5/19): Script: Code from m1lib import *RE: Automating investing with M1Finance & Python - demarco - May 17, 2019 Very cool, what do you want to do with this? |