Thank you so much! :D Would this API be any use to you? http://www.gummy-stuff.org/Yahoo-data.htm
@AddictedtoFM Now that I have said that, I actually don't feel like completely rewriting it with a different API (at least not right now). Sorry, and good luck with trading!
@AddictedtoFM i updated it to include the market cap in the result.
There aren't any ratios provided in the free API I am using. If you happen to know of a better API let me know (see below comments).
Glad you like it! Let me know if you need any other tweaks/suggestions.