mirror of
https://github.com/hydrosquall/tiingo-python.git
synced 2025-12-18 20:24:19 +01:00
Merge pull request #352 from hydrosquall/release/0.12.0
[release] Prepare 0.12.0 release
This commit is contained in:
@@ -2,10 +2,15 @@
|
|||||||
History
|
History
|
||||||
=======
|
=======
|
||||||
|
|
||||||
0.12.x (2019-09-XX)
|
0.13.0 (2019-11-XX - Unreleased)
|
||||||
--------------------
|
--------------------
|
||||||
* Update me with new features!
|
* Update me with new features!
|
||||||
|
|
||||||
|
0.12.0 (2019-10-20)
|
||||||
|
--------------------
|
||||||
|
* Feature: Added 3 new methods for crypo endpoints: top of book prices, historical, and metadata endpoints (@n1rna #340)
|
||||||
|
* Feature: Permit list_tickers to support multiple asset types at once (@n1rna #346)
|
||||||
|
|
||||||
0.11.0 (2019-09-01)
|
0.11.0 (2019-09-01)
|
||||||
--------------------
|
--------------------
|
||||||
* [/news] Internally rename sources parameter to "source", ensure lists are passed as comma separated values #325. Non-breaking external change.
|
* [/news] Internally rename sources parameter to "source", ensure lists are passed as comma separated values #325. Non-breaking external change.
|
||||||
|
|||||||
9435
tests/fixtures/list_all_tickers.yaml
vendored
Normal file
9435
tests/fixtures/list_all_tickers.yaml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
@@ -107,23 +107,24 @@ class TestTickerPrices(TestCase):
|
|||||||
frequency="30Min")
|
frequency="30Min")
|
||||||
self.assertGreater(len(prices), 1)
|
self.assertGreater(len(prices), 1)
|
||||||
|
|
||||||
@vcr.use_cassette('tests/fixtures/list_stock_tickers.yaml')
|
@vcr.use_cassette('tests/fixtures/list_all_tickers.yaml')
|
||||||
def test_list_all_stock_tickers(self):
|
def test_list_all_tickers(self):
|
||||||
tickers = self._client.list_tickers()
|
tickers = self._client.list_tickers()
|
||||||
assert len(tickers) > 1
|
assert len(tickers) > 1
|
||||||
assert any(ticker['assetType' == 'Stock' for ticker in tickers)
|
assert any(ticker['assetType'] == 'Stock' for ticker in tickers)
|
||||||
assert any(ticker['assetType' == 'Mutual Fund' for ticker in tickers)
|
print(tickers)
|
||||||
assert any(ticker['assetType' == 'ETF' for ticker in tickers)
|
assert any(ticker['assetType'] == 'Mutual Fund' for ticker in tickers)
|
||||||
|
assert any(ticker['assetType'] == 'ETF' for ticker in tickers)
|
||||||
|
|
||||||
@vcr.use_cassette('tests/fixtures/list_stock_tickers.yaml')
|
@vcr.use_cassette('tests/fixtures/list_all_tickers.yaml')
|
||||||
def test_list_multi_stock_tickers(self):
|
def test_list_multi_tickers(self):
|
||||||
tickers = self._client.list_tickers(['Stock', 'ETF'])
|
tickers = self._client.list_tickers(['Stock', 'ETF'])
|
||||||
assert len(tickers) > 1
|
assert len(tickers) > 1
|
||||||
assert any(ticker['assetType' == 'Stock' for ticker in tickers)
|
assert any(ticker['assetType'] == 'Stock' for ticker in tickers)
|
||||||
assert any(ticker['assetType' == 'ETF' for ticker in tickers)
|
assert any(ticker['assetType'] == 'ETF' for ticker in tickers)
|
||||||
assert all(ticker['assetType' != 'Mutual Fund' for ticker in tickers)
|
assert all(ticker['assetType'] != 'Mutual Fund' for ticker in tickers)
|
||||||
|
|
||||||
@vcr.use_cassette('tests/fixtures/list_stock_tickers.yaml')
|
@vcr.use_cassette('tests/fixtures/list_all_tickers.yaml')
|
||||||
def test_list_stock_tickers(self):
|
def test_list_stock_tickers(self):
|
||||||
tickers = self._client.list_stock_tickers()
|
tickers = self._client.list_stock_tickers()
|
||||||
assert len(tickers) > 1
|
assert len(tickers) > 1
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
__version__ = '0.11.0'
|
__version__ = '0.12.0'
|
||||||
|
|||||||
Reference in New Issue
Block a user