Snippet to grab historical data for stocks

Category: Other - Tools & Utilities

This is a quick little snippet I'm whipping up to import some historical data in for a graphing app we're building for stock data. I figured I'd post this snippet before I maul it into something application-specific...It downloads a csv file through yahoo's finance site and then parses it and prints out the date and adjusted close for each business day that has data. Date: 17 February, 2012


Historical Data - Stocks Snippet - Ruby Snippets - Historical - Data - Stocks

Homepage: http://snippets.dzone.com

Developer: snippets.dzone.com

License: Freeware

Operating System: Windows, Linux

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

Split an array of elements into a set of smaller arrays of equal size.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: All


Split a string into an array of roughly equal sized chunks based on a string or regular expression delimiter.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: All


Get the currently running method name in Ruby - how to get the running methos name in ruby.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: All


Float Hacks:to_s override.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: All


A replacement for Ruby's File.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: All


The following code will create a live search in your Ruby on Rails project using AJAX.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: All


Clone dev DB schema to test DB in Rails.

developer Developer: snipplr.com
license License: Freeware
operating systems Operating System: All


If you use the convention of using :notice, :warning and :error with your flashes, then this simple helper will allow you to display your flashes easily, and it supports the storage of ActiveRecord::Errors in flash[:error] as well.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: Windows, Linux


Tiny code fragment which loads configuration options from an XML file.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: Windows, Linux