Welcome

My name is Greg Winn I am a web developer, specializing in web application development. Take a look at some of my projects, then drop me a line.

Active Merchant Posted on 17 October 2012.

Deployment with rubber Posted on 20 August 2012.

Using from_xml Posted on 10 August 2012.

Creating custom environments Posted on 28 May 2012.

Create a URL safe token Posted on 17 May 2012.

Give rake access Posted on 08 February 2012.

Payflow with Rails Posted on 31 January 2012.

View older articles.

Projects

Most of my projects can be followed on Github (@gregwinn)

YStock

This Ruby on Rails gem named Ystock will pull stock information such as price, volume, and change from Yahoo! Finance.

Skoot

This small but powerful PHP “micro” framework is a result from another project. We started using a “micro” framework called NiceDog.

Guestbook in PHP

An older project but still have users looking for it! This is hosted over at Google Code.


Using yStock

Posted on 21 April 2013

What is yStock?

This gem is simple to use and will allow you to pull quotes from Yahoo Finance. Yahoo Finance (YF) is a leading provider of investing news and quotes to both individual and institutional investors. yStock will also allow you to pull quotes from Google Finance. While the GF feature is in beta it can provide some additional data that the YF quote will not provide.

How do I use yStock?

Using yStock is really easy! Below are some instructions on how to get a quote from both Yahoo and Google.

Gem file

    gem 'ystock', '0.3.8'

Yahoo Quote for ‘Ford Motor Company [F]’

    Ystock.get_stock('F')

    # => Now with two stocks
    # => Ford and Apple
    Ystock.find(['aapl', 'f'])

Google Quote for ‘Ford Motor Company [F]’

    Ystock::Google.get_quote('F')

    # => Now with two stocks
    # => Ford and Apple
    Ystock::Google.find(['aapl', 'f'])

yStock on Github

That’s right! yStock is on Github and is available for all to use! If you have questions, comments or issues please let me know (on Github) open a ticket. yStock gem on Github.