Skip to content

Commit

Permalink
Set --auth-token when invoking pyalgotrade.tools.quandl
Browse files Browse the repository at this point in the history
  • Loading branch information
gbeced committed Jul 18, 2018
1 parent 5e624e2 commit 34d7378
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions testcases/quandl_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,8 @@ def testCommandLineDailyCreatingDir(self):
"--table-code=%s" % instrument,
"--from-year=2010",
"--to-year=2010",
"--storage=%s" % tmpPath
"--storage=%s" % tmpPath,
"--auth-token=%s" % QUANDL_API_KEY
])
bf = quandlfeed.Feed()
bf.addBarsFromCSV(instrument, os.path.join(tmpPath, "WIKI-ORCL-2010-quandl.csv"))
Expand All @@ -308,7 +309,8 @@ def testCommandLineWeeklyCreatingDir(self):
"--from-year=2010",
"--to-year=2010",
"--storage=%s" % tmpPath,
"--frequency=weekly"
"--frequency=weekly",
"--auth-token=%s" % QUANDL_API_KEY
])
bf = quandlfeed.Feed()
bf.addBarsFromCSV(instrument, os.path.join(tmpPath, "WIKI-AAPL-2010-quandl.csv"))
Expand Down

0 comments on commit 34d7378

Please sign in to comment.