![]() I don’t even think I own a calculator anymore. (If you’re a Quantopian veteran, the structure of the code should be familiar to you.) I’ll be going over the principles and the code piece-by-piece, but if you want to just get to the finished result, you can check it out right now on our GitHub. We’ll be using Alpaca, a commission-free brokerage, as the Alpaca platform provides an API that will make this about as easy as it gets. In this article, I’ll be going over an example of how you can transform a set of investment principles into Python code that will invest your money for you. You want an investment profile that’s truly your own - and you probably think putting your programming skills to use is a good way to figure out what to put into your portfolio. If you’re anything like me and the other developers I talk to, though, just throwing your whole account into something like the S&P 500 isn’t quite enough for you. With the way things are these days, the growth on many savings accounts isn’t even beating inflation, and a lot of people have come around to realizing that maybe they should be making some real returns on that money instead. Even if the idea of cryptocurrencies didn’t appeal to everyone, it certainly got some heads turned towards all the money in their savings accounts. Last year, everyone had that friend who was showing off the incredible gains on their Bitcoin wallet. More than ever before, I’ve been speaking with developers who’ve gotten interested in investing.
0 Comments
Leave a Reply. |