Jelajahi Sumber

changed NASDAQ url to correctly reflect the composite index.

Marco Quezada 10 tahun lalu
induk
melakukan
f31cd4ff58
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      hackathon_starter/hackathon/scripts/quandl.py

+ 1 - 1
hackathon_starter/hackathon/scripts/quandl.py

@@ -23,7 +23,7 @@ def snp500IndexPull(apikey):
 def nasdaqPull(apikey):
     '''Returns JSON data of the Nasdaq Index.'''
     parameters = {'rows' : 1, 'auth_token' : apikey}
-    apiurl = 'https://www.quandl.com/api/v1/datasets/GOOG/NASDAQ_SWTX.json?'
+    apiurl = 'https://www.quandl.com/api/v1/datasets/NASDAQOMX/COMP.json?'
     req = requests.get(apiurl, params=parameters)
     data = json.loads(req.content)
     return data