finnhub-python 2.4.26__tar.gz → 2.4.28__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.28
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})
@@ -531,3 +534,28 @@ class Client:
531
534
 
532
535
  def bank_branch(self, symbol):
533
536
  return self._get("/bank-branch", params={"symbol": symbol})
537
+
538
+ def company_net_income_estimates(self, symbol, freq=None):
539
+ return self._get("/stock/net-income-estimate", params={
540
+ "symbol": symbol,
541
+ "freq": freq
542
+ })
543
+
544
+ def company_pretax_income_estimates(self, symbol, freq=None):
545
+ return self._get("/stock/pretax-income-estimate", params={
546
+ "symbol": symbol,
547
+ "freq": freq
548
+ })
549
+
550
+ def company_gross_income_estimates(self, symbol, freq=None):
551
+ return self._get("/stock/gross-income-estimate", params={
552
+ "symbol": symbol,
553
+ "freq": freq
554
+ })
555
+
556
+ def company_dps_estimates(self, symbol, freq=None):
557
+ return self._get("/stock/dps-estimate", params={
558
+ "symbol": symbol,
559
+ "freq": freq
560
+ })
561
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: finnhub-python
3
- Version: 2.4.26
3
+ Version: 2.4.28
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.28"
7
7
  REQUIRES = ["requests >= 2.22.0"]
8
8
 
9
9
  with open("README.md", "r") as fh:
File without changes