By now we are all well aware of the Twitter habits of the United States President.
Whether he's insulting pop icons, feuding with members of Congress or bashing businesses behaving in ways of which he does not approve, Trump has likely been the most active politician on social media in the history of America.
On both sides of the political aisle, some people think this is great and others find it immature and unpresidential. Regardless, it's happening every day at this point, so we might as well get used to it and make the most of the situation.
One activist group has done just that by creating an algorithm that can actually generate profit based on the tweets of America's orange commander in chief.
Even better, they're turning this money around and donating it to the American Society for the Prevention of Cruelty to Animals, an organization that looks after domesticated and wild animal life in the country, including the most adorable creatures on Earth - puppies.
The way it works is actually fairly straightforward, even though the technical details are complex. Every time @realDonaldTrump tweets, the algorithm, designed by user experience company T3, runs an analysis of the message. First, it determines whether Trump has mentioned a publicly traded company. Then, it uses language rules to determine how positive or negative the sentiment expressed seems to be.
If the statement is strongly negative, the algorithm then executes an electronic securities trade, borrowing funds to purchase the stock at its current price, then selling immediately, and using the resulting funds to buy back the stock after it has fallen in value. The central insight is that the President has a major impact on the stock market, and that frequent Oval Office tweets can thus translate into frequent investment opportunities. After the tweet above, T3 made money by short-selling Delta stocks, and it did the same with Toyota after the tweet below.