finnhub-python 2.4.26__tar.gz → 2.4.27__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: finnhub-python
3
- Version: 2.4.26
3
+ Version: 2.4.27
4
4
  Summary: Finnhub API
5
5
  Home-page: https://finnhub.io/docs/api
6
6
  Author: Finnhub
@@ -373,11 +373,14 @@ class Client:
373
373
  def etfs_holdings(self, symbol=None, isin=None, skip=None, date=None):
374
374
  return self._get("/etf/holdings", params={"symbol": symbol, "isin": isin, "skip": skip, "date": date})
375
375
 
376
- def etfs_sector_exp(self, symbol):
377
- return self._get("/etf/sector", params={"symbol": symbol})
376
+ def etfs_sector_exp(self, symbol=None, isin=None):
377
+ return self._get("/etf/sector", params={"symbol": symbol, "isin": isin})
378
378
 
379
- def etfs_country_exp(self, symbol):
380
- return self._get("/etf/country", params={"symbol": symbol})
379
+ def etfs_country_exp(self, symbol=None, isin=None):
380
+ return self._get("/etf/country", params={"symbol": symbol, "isin": isin})
381
+
382
+ def etfs_allocation(self, symbol=None, isin=None):
383
+ return self._get("/etf/allocation", params={"symbol": symbol, "isin": isin})
381
384
 
382
385
  def international_filings(self, symbol="", country=""):
383
386
  return self._get("/stock/international-filings", params={"symbol": symbol, "country": country})
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: finnhub-python
3
- Version: 2.4.26
3
+ Version: 2.4.27
4
4
  Summary: Finnhub API
5
5
  Home-page: https://finnhub.io/docs/api
6
6
  Author: Finnhub
@@ -3,7 +3,7 @@
3
3
  from setuptools import setup, find_packages # noqa: H301
4
4
 
5
5
  NAME = "finnhub-python"
6
- VERSION = "2.4.26"
6
+ VERSION = "2.4.27"
7
7
  REQUIRES = ["requests >= 2.22.0"]
8
8
 
9
9
  with open("README.md", "r") as fh:
File without changes