Ruby: Keeping track of Stock Transaction using Hash
问题 I am new to Ruby, and I am trying to code a "simple" system, so I can keep track of stock transaction. Calculating the average price, and in the future I will try to get dividends information. So far, my code looks like this (PLEASE feel free to propose better ways to do my code, as I said, I am new). require 'money' require 'money/bank/google_currency' require 'monetize' require 'date' require 'ystock' require 'ostruct' # (optional) # set the seconds after than the current rates are