iconEuler Reference

Get Stock Data from Yahoo

Downlaods and displays stock data from Yahoo historical courses.

Load with "load getstock". Help with "help getstock.e". See the snippets in the user menu.

function getstock (stock,since,till=none,showstock=false,
    a=none,b=none,c=none,d=none)
  Read the stock data since a date
  
  stock : GOOGL, ALV.DE, SIE.DE etc.
  since : e.g. day(2013,1,1)
  till : e.g. day(2014,1,1)
  >showstock : plots the stock
  a,b,c,d : boundaries for the stock plot in years and prices.
  
  >getstock("ALV.DE",day(2012,1,1),>showstock):
  >getstock("SIE.DE",day(2012,1,1),day(2013,1,1),>showstock):
  
  See: 
showstock (Get Stock Data from Yahoo)
function map getyear (dd)


function showstock (v,a=none,b=none,c=none,d=none,title="")
  Display the stock data
  
  >v=getstock("GOOGL",day(2012,1,1));
  >showstock(v,a=2012,b=2015,c=500,d=1500,title="Google Prices"):
  
  See: 
getstock (Get Stock Data from Yahoo)

Documentation Homepage