reportify-sdk 0.2.7__py3-none-any.whl → 0.2.8__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.
- reportify_sdk/client.py +1 -1
- reportify_sdk/stock.py +28 -5
- {reportify_sdk-0.2.7.dist-info → reportify_sdk-0.2.8.dist-info}/METADATA +1 -1
- {reportify_sdk-0.2.7.dist-info → reportify_sdk-0.2.8.dist-info}/RECORD +7 -7
- {reportify_sdk-0.2.7.dist-info → reportify_sdk-0.2.8.dist-info}/WHEEL +0 -0
- {reportify_sdk-0.2.7.dist-info → reportify_sdk-0.2.8.dist-info}/licenses/LICENSE +0 -0
- {reportify_sdk-0.2.7.dist-info → reportify_sdk-0.2.8.dist-info}/top_level.txt +0 -0
reportify_sdk/client.py
CHANGED
reportify_sdk/stock.py
CHANGED
|
@@ -32,21 +32,44 @@ class StockModule:
|
|
|
32
32
|
# Company Information
|
|
33
33
|
# -------------------------------------------------------------------------
|
|
34
34
|
|
|
35
|
-
def overview(
|
|
35
|
+
def overview(
|
|
36
|
+
self, symbols: str | None = None, names: str | None = None
|
|
37
|
+
) -> dict[str, Any] | list[dict[str, Any]]:
|
|
36
38
|
"""
|
|
37
39
|
Get company overview including business description, sector, and key metrics
|
|
38
40
|
|
|
39
41
|
Args:
|
|
40
|
-
|
|
42
|
+
symbols: Stock symbols. You can enter multiple items, separated by commas(,)
|
|
43
|
+
Example: "US:AAPL,US:MSFT"
|
|
44
|
+
names: Stock names. You can enter multiple items, separated by commas(,)
|
|
45
|
+
Example: "Apple Inc.,Microsoft"
|
|
41
46
|
|
|
42
47
|
Returns:
|
|
43
|
-
|
|
48
|
+
Dictionary or list of dictionaries with company overview data
|
|
44
49
|
|
|
45
50
|
Example:
|
|
46
|
-
>>>
|
|
51
|
+
>>> # Single stock by symbol
|
|
52
|
+
>>> info = client.stock.overview(symbols="US:AAPL")
|
|
47
53
|
>>> print(info["name"], info["sector"])
|
|
54
|
+
|
|
55
|
+
>>> # Multiple stocks by symbols
|
|
56
|
+
>>> infos = client.stock.overview(symbols="US:AAPL,US:MSFT")
|
|
57
|
+
>>> for info in infos:
|
|
58
|
+
... print(info["name"])
|
|
59
|
+
|
|
60
|
+
>>> # Search by name
|
|
61
|
+
>>> info = client.stock.overview(names="Apple Inc.")
|
|
48
62
|
"""
|
|
49
|
-
|
|
63
|
+
if not symbols and not names:
|
|
64
|
+
raise ValueError("Either symbols or names must be provided")
|
|
65
|
+
|
|
66
|
+
data = {}
|
|
67
|
+
if symbols:
|
|
68
|
+
data["symbols"] = symbols
|
|
69
|
+
if names:
|
|
70
|
+
data["names"] = names
|
|
71
|
+
|
|
72
|
+
response = self._post("/v1/stock/company-overview", json=data)
|
|
50
73
|
return response
|
|
51
74
|
|
|
52
75
|
def shareholders(self, symbol: str) -> list[dict[str, Any]]:
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
reportify_sdk/__init__.py,sha256=f2bq8Exeuf5g7hAhEQ3qrS7wMVqZRXP7xmQEYA3Nvso,662
|
|
2
|
-
reportify_sdk/client.py,sha256=
|
|
2
|
+
reportify_sdk/client.py,sha256=Q6HDx9_sC9z_Qrp9SntUmcL4OmumZZlRn_EzsGTHyPg,11332
|
|
3
3
|
reportify_sdk/concepts.py,sha256=XlHPuuZacFFUccMthyeb5R2OTayFYxXgIODKNfJLa_c,1891
|
|
4
4
|
reportify_sdk/docs.py,sha256=O30I1J4qTC8zpkVP_qu1cgT8nv6ysXNClqvaiRb0lhY,4957
|
|
5
5
|
reportify_sdk/exceptions.py,sha256=r2_C_kTh6tCrQnfA3UozSqMMA-2OBnoP3pGpgYeqcdU,1049
|
|
6
6
|
reportify_sdk/kb.py,sha256=-4UHWtudFncGRBB42B4YEoMPsEHr4QOtY55_8hKyogE,2240
|
|
7
7
|
reportify_sdk/quant.py,sha256=9rWKWo2UlG3GfsQC-jpEgXUl25ojEabpvOGISyGMamM,15110
|
|
8
|
-
reportify_sdk/stock.py,sha256=
|
|
8
|
+
reportify_sdk/stock.py,sha256=0IjXUSwOVccOB37a1Fc_rubnmwkH_wL4-GGRFHhV4fM,17128
|
|
9
9
|
reportify_sdk/timeline.py,sha256=b5Zj5SjXT4gP0dvEl8gXCWDZJHemyU7NSYahet2nHhc,4075
|
|
10
|
-
reportify_sdk-0.2.
|
|
11
|
-
reportify_sdk-0.2.
|
|
12
|
-
reportify_sdk-0.2.
|
|
13
|
-
reportify_sdk-0.2.
|
|
14
|
-
reportify_sdk-0.2.
|
|
10
|
+
reportify_sdk-0.2.8.dist-info/licenses/LICENSE,sha256=zBUq4DL4lE-fZU_PMkr0gnxkYS1LhdRHFw8_LmCb-ek,1066
|
|
11
|
+
reportify_sdk-0.2.8.dist-info/METADATA,sha256=Ieq07Z124BnTyDxrTwQljiPCVW8vAc57LztmmwQX97M,4311
|
|
12
|
+
reportify_sdk-0.2.8.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
|
|
13
|
+
reportify_sdk-0.2.8.dist-info/top_level.txt,sha256=tc_dzCSWIDsNbHSi-FlyEEX8xwinhN9gl-CwyLRE4B0,14
|
|
14
|
+
reportify_sdk-0.2.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|