akshare-one 0.3.7__py3-none-any.whl → 0.3.9__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.
Files changed (41) hide show
  1. akshare_one/__init__.py +214 -214
  2. akshare_one/eastmoney/client.py +80 -80
  3. akshare_one/eastmoney/utils.py +102 -102
  4. akshare_one/indicators.py +395 -395
  5. akshare_one/modules/cache.py +30 -27
  6. akshare_one/modules/financial/base.py +27 -27
  7. akshare_one/modules/financial/eastmoney_direct.py +183 -183
  8. akshare_one/modules/financial/factory.py +46 -46
  9. akshare_one/modules/financial/sina.py +292 -292
  10. akshare_one/modules/historical/base.py +47 -47
  11. akshare_one/modules/historical/eastmoney.py +236 -236
  12. akshare_one/modules/historical/eastmoney_direct.py +79 -78
  13. akshare_one/modules/historical/factory.py +48 -48
  14. akshare_one/modules/historical/sina.py +250 -250
  15. akshare_one/modules/indicators/base.py +158 -158
  16. akshare_one/modules/indicators/factory.py +33 -33
  17. akshare_one/modules/indicators/simple.py +9 -8
  18. akshare_one/modules/indicators/talib.py +263 -263
  19. akshare_one/modules/info/base.py +25 -25
  20. akshare_one/modules/info/eastmoney.py +51 -51
  21. akshare_one/modules/info/factory.py +44 -44
  22. akshare_one/modules/insider/base.py +28 -28
  23. akshare_one/modules/insider/factory.py +44 -44
  24. akshare_one/modules/insider/xueqiu.py +110 -110
  25. akshare_one/modules/news/base.py +22 -22
  26. akshare_one/modules/news/eastmoney.py +43 -43
  27. akshare_one/modules/news/factory.py +44 -44
  28. akshare_one/modules/realtime/base.py +27 -27
  29. akshare_one/modules/realtime/eastmoney.py +53 -53
  30. akshare_one/modules/realtime/eastmoney_direct.py +36 -36
  31. akshare_one/modules/realtime/factory.py +71 -48
  32. akshare_one/modules/realtime/xueqiu.py +57 -57
  33. akshare_one/modules/utils.py +10 -10
  34. akshare_one/py.typed +0 -0
  35. {akshare_one-0.3.7.dist-info → akshare_one-0.3.9.dist-info}/METADATA +72 -74
  36. akshare_one-0.3.9.dist-info/RECORD +38 -0
  37. akshare_one-0.3.9.dist-info/WHEEL +4 -0
  38. akshare_one-0.3.7.dist-info/RECORD +0 -39
  39. akshare_one-0.3.7.dist-info/WHEEL +0 -5
  40. akshare_one-0.3.7.dist-info/licenses/LICENSE +0 -21
  41. akshare_one-0.3.7.dist-info/top_level.txt +0 -1
akshare_one/__init__.py CHANGED
@@ -1,214 +1,214 @@
1
- """Akshare One - Unified interface for Chinese market data
2
-
3
- Provides standardized access to various financial data sources with:
4
- - Consistent symbol formats
5
- - Unified data schemas
6
- - Cleaned and normalized outputs
7
-
8
- Example:
9
- >>> from akshare_one import get_hist_data, get_realtime_data
10
- >>> # 获取股票历史数据
11
- >>> df = get_hist_data("600000", interval="day")
12
- >>> print(df.head())
13
- >>> # 获取股票实时数据
14
- >>> df = get_realtime_data(symbol="600000")
15
- """
16
-
17
- from typing import Optional, Literal
18
- import pandas as pd
19
- from .modules.financial.factory import FinancialDataFactory
20
- from .modules.historical.factory import HistoricalDataFactory
21
- from .modules.realtime.factory import RealtimeDataFactory
22
- from .modules.info.factory import InfoDataFactory
23
- from .modules.news.factory import NewsDataFactory
24
- from .modules.insider.factory import InsiderDataFactory
25
-
26
-
27
- def get_basic_info(
28
- symbol: str, source: Literal["eastmoney"] = "eastmoney"
29
- ) -> pd.DataFrame:
30
- """获取股票基础信息
31
-
32
- Args:
33
- symbol: 股票代码 (e.g. '600000')
34
- source: 数据源 ('eastmoney')
35
-
36
- Returns:
37
- pd.DataFrame:
38
- - price: 最新价
39
- - symbol: 股票代码
40
- - name: 股票简称
41
- - total_shares: 总股本
42
- - float_shares: 流通股
43
- - total_market_cap: 总市值
44
- - float_market_cap: 流通市值
45
- - industry: 行业
46
- - listing_date: 上市时间
47
- """
48
- provider = InfoDataFactory.get_provider(source, symbol=symbol)
49
- return provider.get_basic_info()
50
-
51
-
52
- def get_hist_data(
53
- symbol: str,
54
- interval: Literal["minute", "hour", "day", "week", "month", "year"] = "day",
55
- interval_multiplier: int = 1,
56
- start_date: str = "1970-01-01",
57
- end_date: str = "2030-12-31",
58
- adjust: Literal["none", "qfq", "hfq"] = "none",
59
- source: Literal["eastmoney", "eastmoney_direct", "sina"] = "eastmoney",
60
- ) -> pd.DataFrame:
61
- """Get historical market data
62
-
63
- Args:
64
- symbol: 股票代码 (e.g. '600000')
65
- interval: 时间间隔 ('minute','hour','day','week','month','year')
66
- interval_multiplier: 时间间隔倍数 (e.g. 5 for 5 minutes)
67
- start_date: 开始日期 (YYYY-MM-DD)
68
- end_date: 结束日期 (YYYY-MM-DD)
69
- adjust: 复权类型 ('none','qfq','hfq')
70
- source: 数据源 ('eastmoney', 'eastmoney_direct', 'sina') (default: 'eastmoney')
71
-
72
- Returns:
73
- pd.DataFrame:
74
- - timestamp: 时间戳
75
- - open: 开盘价
76
- - high: 最高价
77
- - low: 最低价
78
- - close: 收盘价
79
- - volume: 成交量
80
- """
81
- kwargs = {
82
- "symbol": symbol,
83
- "interval": interval,
84
- "interval_multiplier": interval_multiplier,
85
- "start_date": start_date,
86
- "end_date": end_date,
87
- "adjust": adjust,
88
- }
89
- provider = HistoricalDataFactory.get_provider(source, **kwargs)
90
- return provider.get_hist_data()
91
-
92
-
93
- def get_realtime_data(
94
- symbol: Optional[str] = None,
95
- source: Literal["eastmoney", "eastmoney_direct", "xueqiu"] = "eastmoney_direct",
96
- ) -> pd.DataFrame:
97
- """Get real-time market quotes
98
-
99
- Args:
100
- symbol: 股票代码 (如 "600000")
101
- source: 数据源 ('eastmoney', 'eastmoney_direct', 'xueqiu')
102
-
103
- Returns:
104
- pd.DataFrame:
105
- - symbol: 股票代码
106
- - price: 最新价
107
- - change: 涨跌额
108
- - pct_change: 涨跌幅(%)
109
- - timestamp: 时间戳
110
- - volume: 成交量(手)
111
- - amount: 成交额(元)
112
- - open: 今开
113
- - high: 最高
114
- - low: 最低
115
- - prev_close: 昨收
116
- """
117
- provider = RealtimeDataFactory.get_provider(source, symbol=symbol)
118
- return provider.get_current_data()
119
-
120
-
121
- def get_news_data(
122
- symbol: str, source: Literal["eastmoney"] = "eastmoney"
123
- ) -> pd.DataFrame:
124
- """获取个股新闻数据
125
-
126
- Args:
127
- symbol: 股票代码 (如 "300059")
128
- source: 数据源 ('eastmoney')
129
-
130
- Returns:
131
- pd.DataFrame:
132
- - keyword: 关键词
133
- - title: 新闻标题
134
- - content: 新闻内容
135
- - publish_time: 发布时间
136
- - source: 文章来源
137
- - url: 新闻链接
138
- """
139
- provider = NewsDataFactory.get_provider(source, symbol=symbol)
140
- return provider.get_news_data()
141
-
142
-
143
- def get_balance_sheet(symbol: str, source: Literal["sina"] = "sina") -> pd.DataFrame:
144
- """获取资产负债表数据
145
-
146
- Args:
147
- symbol: 股票代码 (如 "600600")
148
- source: 数据源 ("sina")
149
-
150
- Returns:
151
- pd.DataFrame: 资产负债表数据
152
- """
153
- provider = FinancialDataFactory.get_provider(source, symbol=symbol)
154
- return provider.get_balance_sheet()
155
-
156
-
157
- def get_income_statement(symbol: str, source: Literal["sina"] = "sina") -> pd.DataFrame:
158
- """获取利润表数据
159
-
160
- Args:
161
- symbol: 股票代码 (如 "600600")
162
- source: 数据源 ("sina")
163
-
164
- Returns:
165
- pd.DataFrame: 利润表数据
166
- """
167
- provider = FinancialDataFactory.get_provider(source, symbol=symbol)
168
- return provider.get_income_statement()
169
-
170
-
171
- def get_cash_flow(symbol: str, source: Literal["sina"] = "sina") -> pd.DataFrame:
172
- """获取现金流量表数据
173
-
174
- Args:
175
- symbol: 股票代码 (如 "600600")
176
- source: 数据源 ("sina")
177
-
178
- Returns:
179
- pd.DataFrame: 现金流量表数据
180
- """
181
- provider = FinancialDataFactory.get_provider(source, symbol=symbol)
182
- return provider.get_cash_flow()
183
-
184
-
185
- def get_financial_metrics(
186
- symbol: str, source: Literal["eastmoney_direct"] = "eastmoney_direct"
187
- ) -> pd.DataFrame:
188
- """获取三大财务报表关键指标
189
-
190
- Args:
191
- symbol: 股票代码 (如 "600600")
192
- source: 数据源 ('eastmoney_direct')
193
-
194
- Returns:
195
- pd.DataFrame: 财务关键指标数据
196
- """
197
- provider = FinancialDataFactory.get_provider(source, symbol=symbol)
198
- return provider.get_financial_metrics()
199
-
200
-
201
- def get_inner_trade_data(
202
- symbol: str, source: Literal["xueqiu"] = "xueqiu"
203
- ) -> pd.DataFrame:
204
- """获取雪球内部交易数据
205
-
206
- Args:
207
- symbol: 股票代码,如"600000"
208
- source: 数据源 (目前支持 "xueqiu")
209
-
210
- Returns:
211
- pd.DataFrame: 内部交易数据
212
- """
213
- provider = InsiderDataFactory.get_provider(source, symbol=symbol)
214
- return provider.get_inner_trade_data()
1
+ """Akshare One - Unified interface for Chinese market data
2
+
3
+ Provides standardized access to various financial data sources with:
4
+ - Consistent symbol formats
5
+ - Unified data schemas
6
+ - Cleaned and normalized outputs
7
+
8
+ Example:
9
+ >>> from akshare_one import get_hist_data, get_realtime_data
10
+ >>> # 获取股票历史数据
11
+ >>> df = get_hist_data("600000", interval="day")
12
+ >>> print(df.head())
13
+ >>> # 获取股票实时数据
14
+ >>> df = get_realtime_data(symbol="600000")
15
+ """
16
+
17
+ from typing import Optional, Literal
18
+ import pandas as pd
19
+ from .modules.financial.factory import FinancialDataFactory
20
+ from .modules.historical.factory import HistoricalDataFactory
21
+ from .modules.realtime.factory import RealtimeDataFactory
22
+ from .modules.info.factory import InfoDataFactory
23
+ from .modules.news.factory import NewsDataFactory
24
+ from .modules.insider.factory import InsiderDataFactory
25
+
26
+
27
+ def get_basic_info(
28
+ symbol: str, source: Literal["eastmoney"] = "eastmoney"
29
+ ) -> pd.DataFrame:
30
+ """获取股票基础信息
31
+
32
+ Args:
33
+ symbol: 股票代码 (e.g. '600000')
34
+ source: 数据源 ('eastmoney')
35
+
36
+ Returns:
37
+ pd.DataFrame:
38
+ - price: 最新价
39
+ - symbol: 股票代码
40
+ - name: 股票简称
41
+ - total_shares: 总股本
42
+ - float_shares: 流通股
43
+ - total_market_cap: 总市值
44
+ - float_market_cap: 流通市值
45
+ - industry: 行业
46
+ - listing_date: 上市时间
47
+ """
48
+ provider = InfoDataFactory.get_provider(source, symbol=symbol)
49
+ return provider.get_basic_info()
50
+
51
+
52
+ def get_hist_data(
53
+ symbol: str,
54
+ interval: Literal["minute", "hour", "day", "week", "month", "year"] = "day",
55
+ interval_multiplier: int = 1,
56
+ start_date: str = "1970-01-01",
57
+ end_date: str = "2030-12-31",
58
+ adjust: Literal["none", "qfq", "hfq"] = "none",
59
+ source: Literal["eastmoney", "eastmoney_direct", "sina"] = "eastmoney",
60
+ ) -> pd.DataFrame:
61
+ """Get historical market data
62
+
63
+ Args:
64
+ symbol: 股票代码 (e.g. '600000')
65
+ interval: 时间间隔 ('minute','hour','day','week','month','year')
66
+ interval_multiplier: 时间间隔倍数 (e.g. 5 for 5 minutes)
67
+ start_date: 开始日期 (YYYY-MM-DD)
68
+ end_date: 结束日期 (YYYY-MM-DD)
69
+ adjust: 复权类型 ('none','qfq','hfq')
70
+ source: 数据源 ('eastmoney', 'eastmoney_direct', 'sina') (default: 'eastmoney')
71
+
72
+ Returns:
73
+ pd.DataFrame:
74
+ - timestamp: 时间戳
75
+ - open: 开盘价
76
+ - high: 最高价
77
+ - low: 最低价
78
+ - close: 收盘价
79
+ - volume: 成交量
80
+ """
81
+ kwargs = {
82
+ "symbol": symbol,
83
+ "interval": interval,
84
+ "interval_multiplier": interval_multiplier,
85
+ "start_date": start_date,
86
+ "end_date": end_date,
87
+ "adjust": adjust,
88
+ }
89
+ provider = HistoricalDataFactory.get_provider(source, **kwargs)
90
+ return provider.get_hist_data()
91
+
92
+
93
+ def get_realtime_data(
94
+ symbol: Optional[str] = None,
95
+ source: Literal["eastmoney", "eastmoney_direct", "xueqiu"] = "eastmoney_direct",
96
+ ) -> pd.DataFrame:
97
+ """Get real-time market quotes
98
+
99
+ Args:
100
+ symbol: 股票代码 (如 "600000")
101
+ source: 数据源 ('eastmoney', 'eastmoney_direct', 'xueqiu')
102
+
103
+ Returns:
104
+ pd.DataFrame:
105
+ - symbol: 股票代码
106
+ - price: 最新价
107
+ - change: 涨跌额
108
+ - pct_change: 涨跌幅(%)
109
+ - timestamp: 时间戳
110
+ - volume: 成交量(手)
111
+ - amount: 成交额(元)
112
+ - open: 今开
113
+ - high: 最高
114
+ - low: 最低
115
+ - prev_close: 昨收
116
+ """
117
+ provider = RealtimeDataFactory.get_provider(source, symbol=symbol)
118
+ return provider.get_current_data()
119
+
120
+
121
+ def get_news_data(
122
+ symbol: str, source: Literal["eastmoney"] = "eastmoney"
123
+ ) -> pd.DataFrame:
124
+ """获取个股新闻数据
125
+
126
+ Args:
127
+ symbol: 股票代码 (如 "300059")
128
+ source: 数据源 ('eastmoney')
129
+
130
+ Returns:
131
+ pd.DataFrame:
132
+ - keyword: 关键词
133
+ - title: 新闻标题
134
+ - content: 新闻内容
135
+ - publish_time: 发布时间
136
+ - source: 文章来源
137
+ - url: 新闻链接
138
+ """
139
+ provider = NewsDataFactory.get_provider(source, symbol=symbol)
140
+ return provider.get_news_data()
141
+
142
+
143
+ def get_balance_sheet(symbol: str, source: Literal["sina"] = "sina") -> pd.DataFrame:
144
+ """获取资产负债表数据
145
+
146
+ Args:
147
+ symbol: 股票代码 (如 "600600")
148
+ source: 数据源 ("sina")
149
+
150
+ Returns:
151
+ pd.DataFrame: 资产负债表数据
152
+ """
153
+ provider = FinancialDataFactory.get_provider(source, symbol=symbol)
154
+ return provider.get_balance_sheet()
155
+
156
+
157
+ def get_income_statement(symbol: str, source: Literal["sina"] = "sina") -> pd.DataFrame:
158
+ """获取利润表数据
159
+
160
+ Args:
161
+ symbol: 股票代码 (如 "600600")
162
+ source: 数据源 ("sina")
163
+
164
+ Returns:
165
+ pd.DataFrame: 利润表数据
166
+ """
167
+ provider = FinancialDataFactory.get_provider(source, symbol=symbol)
168
+ return provider.get_income_statement()
169
+
170
+
171
+ def get_cash_flow(symbol: str, source: Literal["sina"] = "sina") -> pd.DataFrame:
172
+ """获取现金流量表数据
173
+
174
+ Args:
175
+ symbol: 股票代码 (如 "600600")
176
+ source: 数据源 ("sina")
177
+
178
+ Returns:
179
+ pd.DataFrame: 现金流量表数据
180
+ """
181
+ provider = FinancialDataFactory.get_provider(source, symbol=symbol)
182
+ return provider.get_cash_flow()
183
+
184
+
185
+ def get_financial_metrics(
186
+ symbol: str, source: Literal["eastmoney_direct"] = "eastmoney_direct"
187
+ ) -> pd.DataFrame:
188
+ """获取三大财务报表关键指标
189
+
190
+ Args:
191
+ symbol: 股票代码 (如 "600600")
192
+ source: 数据源 ('eastmoney_direct')
193
+
194
+ Returns:
195
+ pd.DataFrame: 财务关键指标数据
196
+ """
197
+ provider = FinancialDataFactory.get_provider(source, symbol=symbol)
198
+ return provider.get_financial_metrics()
199
+
200
+
201
+ def get_inner_trade_data(
202
+ symbol: str, source: Literal["xueqiu"] = "xueqiu"
203
+ ) -> pd.DataFrame:
204
+ """获取雪球内部交易数据
205
+
206
+ Args:
207
+ symbol: 股票代码,如"600000"
208
+ source: 数据源 (目前支持 "xueqiu")
209
+
210
+ Returns:
211
+ pd.DataFrame: 内部交易数据
212
+ """
213
+ provider = InsiderDataFactory.get_provider(source, symbol=symbol)
214
+ return provider.get_inner_trade_data()
@@ -1,80 +1,80 @@
1
- import requests
2
- from typing import Dict, Any
3
-
4
-
5
- class EastMoneyClient:
6
- """
7
- A client for interacting directly with EastMoney's data APIs.
8
- This class handles session management, request signing, and API calls.
9
- """
10
-
11
- def __init__(self):
12
- self.session = requests.Session()
13
-
14
- def _get_security_id(self, symbol: str) -> str:
15
- """
16
- Converts a stock symbol to EastMoney's internal secid format.
17
- e.g., '600519' -> '1.600519', '000001' -> '0.000001'
18
- """
19
- symbol = symbol.upper()
20
- if symbol.startswith("SZ"):
21
- market = "0"
22
- code = symbol[2:]
23
- elif symbol.startswith("SH"):
24
- market = "1"
25
- code = symbol[2:]
26
- elif symbol.startswith("HK"):
27
- market = "116"
28
- code = symbol[2:]
29
- elif len(symbol) == 6:
30
- if symbol.startswith(("000", "001", "002", "003", "300", "200")):
31
- market = "0"
32
- elif symbol.startswith(("600", "601", "603", "605", "688", "900")):
33
- market = "1"
34
- else:
35
- market = "0" # Default to SZ for ambiguity
36
- code = symbol
37
- elif len(symbol) == 5: # HK Market
38
- market = "116"
39
- code = symbol
40
- else:
41
- market = "0"
42
- code = symbol
43
- return f"{market}.{code}"
44
-
45
- def fetch_historical_klines(
46
- self, symbol: str, klt: str, fqt: str, start_date: str, end_date: str
47
- ) -> Dict[str, Any]:
48
- """
49
- Fetches historical K-line (candlestick) data.
50
- """
51
- url = "https://push2his.eastmoney.com/api/qt/stock/kline/get"
52
- secid = self._get_security_id(symbol)
53
- params = {
54
- "fields1": "f1,f2,f3,f4,f5,f6",
55
- "fields2": "f51,f52,f53,f54,f55,f56,f57,f58,f59,f60,f61",
56
- "klt": klt,
57
- "fqt": fqt,
58
- "secid": secid,
59
- "beg": start_date,
60
- "end": end_date,
61
- }
62
- response = self.session.get(url, params=params)
63
- response.raise_for_status()
64
- return response.json()
65
-
66
- def fetch_realtime_quote(self, symbol: str) -> Dict[str, Any]:
67
- """
68
- Fetches real-time quote data for a single stock.
69
- """
70
- url = "https://push2.eastmoney.com/api/qt/stock/get"
71
- secid = self._get_security_id(symbol)
72
- params = {
73
- "invt": "2",
74
- "fltt": "2",
75
- "fields": "f43,f57,f58,f169,f170,f46,f60,f44,f51,f168,f47,f164,f163,f116,f60,f45,f52,f50,f48,f167,f117,f71,f161,f49,f530",
76
- "secid": secid,
77
- }
78
- response = self.session.get(url, params=params)
79
- response.raise_for_status()
80
- return response.json()
1
+ import requests
2
+ from typing import Dict, Any
3
+
4
+
5
+ class EastMoneyClient:
6
+ """
7
+ A client for interacting directly with EastMoney's data APIs.
8
+ This class handles session management, request signing, and API calls.
9
+ """
10
+
11
+ def __init__(self) -> None:
12
+ self.session = requests.Session()
13
+
14
+ def _get_security_id(self, symbol: str) -> str:
15
+ """
16
+ Converts a stock symbol to EastMoney's internal secid format.
17
+ e.g., '600519' -> '1.600519', '000001' -> '0.000001'
18
+ """
19
+ symbol = symbol.upper()
20
+ if symbol.startswith("SZ"):
21
+ market = "0"
22
+ code = symbol[2:]
23
+ elif symbol.startswith("SH"):
24
+ market = "1"
25
+ code = symbol[2:]
26
+ elif symbol.startswith("HK"):
27
+ market = "116"
28
+ code = symbol[2:]
29
+ elif len(symbol) == 6:
30
+ if symbol.startswith(("000", "001", "002", "003", "300", "200")):
31
+ market = "0"
32
+ elif symbol.startswith(("600", "601", "603", "605", "688", "900")):
33
+ market = "1"
34
+ else:
35
+ market = "0" # Default to SZ for ambiguity
36
+ code = symbol
37
+ elif len(symbol) == 5: # HK Market
38
+ market = "116"
39
+ code = symbol
40
+ else:
41
+ market = "0"
42
+ code = symbol
43
+ return f"{market}.{code}"
44
+
45
+ def fetch_historical_klines(
46
+ self, symbol: str, klt: str, fqt: str, start_date: str, end_date: str
47
+ ) -> Dict[str, Any]:
48
+ """
49
+ Fetches historical K-line (candlestick) data.
50
+ """
51
+ url = "https://push2his.eastmoney.com/api/qt/stock/kline/get"
52
+ secid = self._get_security_id(symbol)
53
+ params = {
54
+ "fields1": "f1,f2,f3,f4,f5,f6",
55
+ "fields2": "f51,f52,f53,f54,f55,f56,f57,f58,f59,f60,f61",
56
+ "klt": klt,
57
+ "fqt": fqt,
58
+ "secid": secid,
59
+ "beg": start_date,
60
+ "end": end_date,
61
+ }
62
+ response = self.session.get(url, params=params)
63
+ response.raise_for_status()
64
+ return response.json() # type: ignore
65
+
66
+ def fetch_realtime_quote(self, symbol: str) -> Dict[str, Any]:
67
+ """
68
+ Fetches real-time quote data for a single stock.
69
+ """
70
+ url = "https://push2.eastmoney.com/api/qt/stock/get"
71
+ secid = self._get_security_id(symbol)
72
+ params = {
73
+ "invt": "2",
74
+ "fltt": "2",
75
+ "fields": "f43,f57,f58,f169,f170,f46,f60,f44,f51,f168,f47,f164,f163,f116,f60,f45,f52,f50,f48,f167,f117,f71,f161,f49,f530",
76
+ "secid": secid,
77
+ }
78
+ response = self.session.get(url, params=params)
79
+ response.raise_for_status()
80
+ return response.json() # type: ignore