mirror of
https://github.com/hydrosquall/tiingo-python.git
synced 2026-02-15 07:04:21 +01:00
Initial commit
This commit is contained in:
@@ -97,6 +97,15 @@ class TestTickerPrices(TestCase):
|
||||
rows = list(reader)
|
||||
assert len(rows) > 2 # more than 1 day of data
|
||||
|
||||
@vcr.use_cassette('tests/fixtures/intraday_price.yaml')
|
||||
def test_intraday_ticker_price(self):
|
||||
"""Test the EOD Prices Endpoint with data param"""
|
||||
prices = self._client.get_ticker_price("GOOGL",
|
||||
startDate="2018-01-02",
|
||||
endDate="2018-01-02",
|
||||
frequency="30Min")
|
||||
self.assertGreater(len(prices), 1)
|
||||
|
||||
@vcr.use_cassette('tests/fixtures/list_stock_tickers.yaml')
|
||||
def test_list_stock_tickers(self):
|
||||
tickers = self._client.list_stock_tickers()
|
||||
|
||||
Reference in New Issue
Block a user