Skip to content

Instantly share code, notes, and snippets.

@lloydroc
Created August 1, 2016 21:14
Show Gist options
  • Save lloydroc/c84640fe615f8a87aba4ae0a3a933227 to your computer and use it in GitHub Desktop.
Save lloydroc/c84640fe615f8a87aba4ae0a3a933227 to your computer and use it in GitHub Desktop.
Fetch stocks on the NASDAQ and backup yesterdays fetched
mv /srv/nasdaqtraded.txt /srv/nasdaqtraded.txt`date --date="yesterday" +"%m-%d-%Y"`
wget ftp://ftp.nasdaqtrader.com/SymbolDirectory/nasdaqtraded.txt
mv nasdaqtraded.txt /srv/nasdaqtraded.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment