finnhub-python 2.4.18__py3-none-any.whl → 2.4.20__py3-none-any.whl

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.
finnhub/client.py CHANGED
@@ -432,6 +432,12 @@ class Client:
432
432
  def company_esg_score(self, symbol):
433
433
  return self._get("/stock/esg", params={"symbol": symbol})
434
434
 
435
+ def company_historical_esg_score(self, symbol):
436
+ return self._get("/stock/historical-esg", params={"symbol": symbol})
437
+
438
+ def historical_market_cap(self, symbol, _from=None, to=None):
439
+ return self._get("/stock/historical-market-cap", params={"symbol": symbol, "from": _from, "to": to})
440
+
435
441
  def company_earnings_quality_score(self, symbol, freq):
436
442
  return self._get("/stock/earnings-quality-score", params={"symbol": symbol, 'freq': freq})
437
443
 
@@ -497,3 +503,9 @@ class Client:
497
503
 
498
504
  def bond_yield_curve(self, code):
499
505
  return self._get("/bond/yield-curve", params={'code': code})
506
+
507
+ def market_status(self, exchange):
508
+ return self._get("/stock/market-status", params={'exchange': exchange})
509
+
510
+ def market_holiday(self, exchange):
511
+ return self._get("/stock/market-holiday", params={'exchange': exchange})
@@ -1,21 +1,21 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: finnhub-python
3
- Version: 2.4.18
3
+ Version: 2.4.20
4
4
  Summary: Finnhub API
5
5
  Home-page: https://finnhub.io/docs/api
6
6
  Author: Finnhub
7
7
  Author-email: support@finnhub.io
8
8
  License: Apache-2.0
9
9
  Keywords: finnhub,Finnhub API,api
10
- Platform: UNKNOWN
11
10
  Description-Content-Type: text/markdown
12
- Requires-Dist: requests (>=2.22.0)
11
+ License-File: LICENSE
12
+ Requires-Dist: requests >=2.22.0
13
13
 
14
14
  # finnhub-python
15
15
 
16
16
  - API documentation: https://finnhub.io/docs/api
17
17
  - API version: 1.0.0
18
- - Package version: 2.4.18
18
+ - Package version: 2.4.20
19
19
 
20
20
  ## Installation
21
21
 
@@ -318,10 +318,12 @@ print(finnhub_client.congressional_trading('AAPL', '2020-01-01', '2023-03-31'))
318
318
  # Price metrics with historical data
319
319
  print(finnhub_client.price_metrics(symbol="AAPL", date="2022-01-01"))
320
320
 
321
+ ## Market Holday / Status
322
+ print(finnhub_client.market_holiday(exchange='US'))
323
+ print(finnhub_client.market_status(exchange='US'))
324
+
321
325
  ```
322
326
 
323
327
  ## License
324
328
 
325
329
  Apache License
326
-
327
-
@@ -0,0 +1,8 @@
1
+ finnhub/__init__.py,sha256=aDJgcon-60nq_QVb-oGz2fJmtoCqavJK7Od__KY9kMA,150
2
+ finnhub/client.py,sha256=b7_dOvL6y5T1mjr_SS849N1cEfdXO9Bzquyxc8AnhS4,18016
3
+ finnhub/exceptions.py,sha256=tn9Dv_HnChKJp6f-Sd7Ht_i6a7Gz_4NHjZ1b9hro_Mc,974
4
+ finnhub_python-2.4.20.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
5
+ finnhub_python-2.4.20.dist-info/METADATA,sha256=OkO4dIvuGqUbU93T-khaJSVkJ1Kq67x8iFLp8PNMWpA,8974
6
+ finnhub_python-2.4.20.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
7
+ finnhub_python-2.4.20.dist-info/top_level.txt,sha256=B0nGfSHiKqo7AI8B45VUop7gFC9cViMHWRq_2q4oXSo,8
8
+ finnhub_python-2.4.20.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.34.2)
2
+ Generator: bdist_wheel (0.42.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,8 +0,0 @@
1
- finnhub/__init__.py,sha256=aDJgcon-60nq_QVb-oGz2fJmtoCqavJK7Od__KY9kMA,150
2
- finnhub/client.py,sha256=3MegtW4Rcb1CV3lyqUYK0flcoh-2a__pH0UP9pzwMho,17468
3
- finnhub/exceptions.py,sha256=tn9Dv_HnChKJp6f-Sd7Ht_i6a7Gz_4NHjZ1b9hro_Mc,974
4
- finnhub_python-2.4.18.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
5
- finnhub_python-2.4.18.dist-info/METADATA,sha256=QgsIffgBAsDsseL5dIYjKEa0dpUwrjjkIFd7TApyAjI,8844
6
- finnhub_python-2.4.18.dist-info/WHEEL,sha256=g4nMs7d-Xl9-xC9XovUrsDHGXt-FT0E17Yqo92DEfvY,92
7
- finnhub_python-2.4.18.dist-info/top_level.txt,sha256=B0nGfSHiKqo7AI8B45VUop7gFC9cViMHWRq_2q4oXSo,8
8
- finnhub_python-2.4.18.dist-info/RECORD,,