Skip to content

Instantly share code, notes, and snippets.

@apurvadave
Last active August 29, 2015 14:10
Show Gist options
  • Save apurvadave/3840a265a6703b528961 to your computer and use it in GitHub Desktop.
Save apurvadave/3840a265a6703b528961 to your computer and use it in GitHub Desktop.
AAPL v Microsoft

This juttle uses the Quandl API to plot AAPL v MSFT. This requires the CSV to JSON convertor built into the source proc.

source "https://www.quandl.com/api/v1/datasets/GOOG/NASDAQ_AAPL.csv?trim_start=1980-12-12&trim_end=2014-11-20" |
put time=Date(Date) | put AAPL=Close| (@timechart -column 'AAPL' -title 'AAPL v MSFT' -name AAPL);
source "https://www.quandl.com/api/v1/datasets/GOOG/NASDAQ_MSFT.csv?trim_start=1986-03-13&trim_end=2014-11-20" |
put time=Date(Date) | put MSFT=Close | (@timechart -column 'MSFT' -name MSFT -on AAPL)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment