Trading bot botus will buy and sell stock based on trumps


Planet Money built a stock trading Twitter bot. The big puzzle is figuring out which company to buy or sell, and how to get a computer to tell the difference between Apple the company and the fruit.

So all this week we have been looking into a trend on Wall Street. Stock market trading is becoming more and more automated. To understand this better, our Planet Money podcast team is building what is called a trading bot, their very own automated stock trading computer program. We've got the plan down. Our bot will read the tweets of President Donald Trump and then use that to trade stocks.

When trading bot botus will buy and sell stock based on trumps says something positive about a company, we buy that company's stock. When he says something negative about a company, we will sell that company's stock short. We will set ourselves up to make money if the stock price goes down. We teamed up with a hedge fund called Tradeworx to actually build the bot.

One of the computer programmers there, Camilo Jimenez, he got to work. He did what he usually does when he's making a bot - researching from his home office on a little wood desk in his bedroom, keeps it simple.

That's where he hit a problem. His project was to get the computer to recognize which company Donald Trump was talking about. That's easy for a human. That's very hard for a computer because the text could include either the trading bot botus will buy and sell stock based on trumps of a person or the company or the product and you have to link that to a company.

So is Donald Trump just saying he ate an apple for lunch, or is he talking about Apple computers? Camilo had to train our bot to tell the apples apart, so he added in what's called a context algorithm. He had our little bot read a whole bunch of financial articles about Apple the company and learn the kinds of words and phrases and topics associated with the company - Steve Jobs, iPhone, fanboy - and then learn the things that are not associated with the company but with apple the food - eating, juice, Honeycrisp.

And the machine, it really is learning about apples - both kinds - and then about every company. But there was one company that the bot could not recognize. The company name is a name that President Trump tweets about. It's something pretty close to him but the bot just kept getting confused. You want to guess what it was? I'll give you a sec - Tiffany's, the jewelers.

In our production algorithm, we won't trade the company Tiffany's because the computer can't tell when Trump is talking about his daughter and when he's talking about the actual company. Mani Mahjouri is the head of investments at Tradeworx. And trading bot botus will buy and sell stock based on trumps also helped us build our bot.

He said with enough work, they could train the bot to recognize Tiffany's the company from Tiffany's the daughter but it's just not worth it. He made a call. Our bot, it doesn't trade Tiffany's. And that's just one of many human judgments that's underneath our automated stock-picking robot. Trading with bots is a blend of humans and computers making decisions.

For us, it adds up to a bot that can pick out positive and negative tweets. And it can figure out what companies the president is tweeting about - except for Tiffany's.

So it's ready to go, pretty much. I just don't want to understate the risk. And I don't want to overstate the benefit of doing something like this. I just feel like, you know, it's not - we haven't scientifically proven anything.

But he said if you wait for proof, you can miss out on a good thing. So we're doing this. And we're going to do it with real money. The staff of the Planet Money podcast is putting our own personal funds behind the plan, not NPR's money, our money. Now, we wait for the tweets and the trades. BOTUS is going to be tweeting about any trades it makes.

Visit our website terms of use and permissions pages at www. NPR transcripts are created on a rush deadline by Verb8tm, Inc. This text may not be in its final form and may be updated or revised in the future. Accuracy and availability may vary. Trading bot botus will buy and sell stock based on trumps links Skip to main content Keyboard shortcuts for audio player.

Facebook Twitter Flipboard Email. April 14, 5: Heard on Morning Edition. Just my laptop, coffee and notepad. Laptop, notepad and some coffee, that's what you need.

That's all you need. That's a really good case. You know, we're - we feel good about the strategy, you know. Can you say that with a little more confidence? Saying that to me like You really don't believe it.