# Please Forward: Ruby Quiz Submission - Stock Portfolios

**URL:** <https://rubytalk.org/t/please-forward-ruby-quiz-submission-stock-portfolios/42522>\
**Category:** ruby-talk\
**Created:** [26 November 2007 20:37 UTC](https://rubytalk.org/t/please-forward-ruby-quiz-submission-stock-portfolios/42522 "2007-11-26T20:37:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Edward\_Gray\_II](https://avatars.discourse-cdn.com/v4/letter/j/ea5d25/32.png) [@James\_Edward\_Gray\_II](https://rubytalk.org/u/James_Edward_Gray_II)\
**Post date:** [26 November 2007 20:37 UTC](https://rubytalk.org/t/please-forward-ruby-quiz-submission-stock-portfolios/42522/1 "2007-11-26T20:37:22Z")

</div>

> From: Eduardo Vaz de Lima \<eduardo\_lima22@yahoo.com\>  
> Date: November 23, 2007 5:33:57 AM CST  
> To: submission@rubyquiz.com  
> Subject: Please Forward: Ruby Quiz Submission - Stock Portfolios
> 
> Hi,
> 
> Sorry for sending this solution so late. I am new in Ruby programming!!
> 
> I would like to share my solution with the community.
> 
> I wrote a script that fetches stock prices from Yahoo Finance and compares with purchase price and amount stored in a separate text file.
> 
> In the file stock.txt insert stock name, purchase date, stock price and amount (separated by ";").
> 
> Best regards,
> 
> Eduardo Lima
> 
> Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.

[stock.rb](https://rubytalk.org/uploads/short-url/bn7DwDnAF5f0YnD09j44bejOXNN.rb) (3.05 KB)

> **···**
>
> Begin forwarded message:
