1
0
mirror of https://github.com/bspeice/metrik synced 2025-07-01 22:07:03 -04:00

Add NASDAQ Company and ETF lists

This commit is contained in:
Bradlee Speice
2016-08-19 22:02:19 -04:00
parent c42f5a6980
commit 88c4401960
8 changed files with 106 additions and 4 deletions

17
test/tasks/test_nasdaq.py Normal file
View File

@ -0,0 +1,17 @@
from unittest import TestCase
from metrik.tasks.nasdaq import NasdaqCompanyList, NasdaqETFList
class NasdaqTest(TestCase):
def test_company_list(self):
companies = NasdaqCompanyList.retrieve_data()['companies']
assert len(companies) > 6000
# TODO: Get lists of companies from ETF holdings and verify that they
# can be found here as well - this should be a superset
def test_etf_list(self):
etfs = NasdaqETFList.retrieve_data()['etfs']
assert len(etfs) > 1500