What's Happening?

This mash-up uses the Twitter Search API and the kaChing API to perform a little experiment in how web chatter (via Twitter) is reflective of market realities. This mash-up calculates the amount of chatter over Twitter regarding a company, holding it to an average. If it detects that there's more than the average amount of chatter about a particular company within the last ten minutes, the mashup will then buy or sell equity depending on whether the prices are dropping or rising.

Just by keeping this page open, you are affecting my stock portfolio. By the way, if you're viewing this on the weekends, or after 4:00 p.m., the markets are closed, and all trades are being queued, to be executed when the markets reopen.

My Portfolio

I have long holdings in the following companies:

Company

No. of Shares

Stock Price

Stock Loss/Gain (Last 15 Minutes)

Average Chatter (Tweets per 10 minutes)

Chatter in the Last 10 Minutes

Motorola
MOT

Nokia
NOK

Google
GOOG

Microsoft
MSFT

Apple
AAPL

Dell
DELL

How Does This Work?

Very simple stuff, just using some AJAX and PHP. Thanks to Twitter and kaChing for providing such robust APIs! This is only a tiny little sliver of what such a system can do, and isn't really reflective of any trading strategy (it's not even a wise trading strategy as it is...)

I'd be more than happy to answer any questions in greater depth. Shoot one to Harlo Holmes to open up conversation!