btgsolutions-dataservices-python-client 2.11.3__tar.gz → 2.11.4__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.
Files changed (34) hide show
  1. {btgsolutions_dataservices_python_client-2.11.3/btgsolutions_dataservices_python_client.egg-info → btgsolutions_dataservices_python_client-2.11.4}/PKG-INFO +9 -1
  2. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/README.md +8 -0
  3. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/btgsolutions_dataservices/rest/historical_candles.py +29 -1
  4. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4/btgsolutions_dataservices_python_client.egg-info}/PKG-INFO +9 -1
  5. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/setup.py +1 -1
  6. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/LICENSE +0 -0
  7. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/MANIFEST.in +0 -0
  8. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/btgsolutions_dataservices/__init__.py +0 -0
  9. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/btgsolutions_dataservices/config.py +0 -0
  10. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/btgsolutions_dataservices/exceptions.py +0 -0
  11. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/btgsolutions_dataservices/rest/__init__.py +0 -0
  12. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/btgsolutions_dataservices/rest/authenticator.py +0 -0
  13. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/btgsolutions_dataservices/rest/bulk_data.py +0 -0
  14. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/btgsolutions_dataservices/rest/company_data.py +0 -0
  15. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/btgsolutions_dataservices/rest/corporate_events.py +0 -0
  16. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/btgsolutions_dataservices/rest/hfn.py +0 -0
  17. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/btgsolutions_dataservices/rest/intraday_candles.py +0 -0
  18. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/btgsolutions_dataservices/rest/intraday_tick_data.py +0 -0
  19. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/btgsolutions_dataservices/rest/public_sources.py +0 -0
  20. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/btgsolutions_dataservices/rest/quotes.py +0 -0
  21. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/btgsolutions_dataservices/rest/reference_data.py +0 -0
  22. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/btgsolutions_dataservices/rest/ticker_last_event.py +0 -0
  23. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/btgsolutions_dataservices/websocket/__init__.py +0 -0
  24. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/btgsolutions_dataservices/websocket/hfn_websocket_client.py +0 -0
  25. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/btgsolutions_dataservices/websocket/market_data_feed.py +0 -0
  26. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/btgsolutions_dataservices/websocket/market_data_websocket_client.py +0 -0
  27. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/btgsolutions_dataservices/websocket/websocket_default_functions.py +0 -0
  28. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/btgsolutions_dataservices_python_client.egg-info/SOURCES.txt +0 -0
  29. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/btgsolutions_dataservices_python_client.egg-info/dependency_links.txt +0 -0
  30. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/btgsolutions_dataservices_python_client.egg-info/requires.txt +0 -0
  31. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/btgsolutions_dataservices_python_client.egg-info/top_level.txt +0 -0
  32. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/pyproject.toml +0 -0
  33. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/requirements.txt +0 -0
  34. {btgsolutions_dataservices_python_client-2.11.3 → btgsolutions_dataservices_python_client-2.11.4}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: btgsolutions-dataservices-python-client
3
- Version: 2.11.3
3
+ Version: 2.11.4
4
4
  Summary: Python package containing several classes and data for extracting and manipulating market and trading data.
5
5
  Home-page: https://github.com/BTG-Pactual-Solutions/btgsolutions-dataservices-python-client
6
6
  Author: BTG Solutions Data Services powered by BTG Pactual Solutions
@@ -242,6 +242,14 @@ hist_candles = btg.HistoricalCandles(api_key='YOUR_API_KEY')
242
242
  hist_candles.get_intraday_history_candles(ticker='PETR4', market_type='stocks', corporate_events_adj=True, date='2023-10-06', candle='1m', rmv_after_market=True, timezone='UTC', raw_data=False)
243
243
  ```
244
244
 
245
+ ##### Available Tickers
246
+
247
+ ```python
248
+ import btgsolutions_dataservices as btg
249
+ hist_candles = btg.HistoricalCandles(api_key='YOUR_API_KEY')
250
+ hist_candles.get_available_tickers(market_type='stocks', date='2025-05-29')
251
+ ```
252
+
245
253
  ##### Plot Candles
246
254
 
247
255
  ```python
@@ -219,6 +219,14 @@ hist_candles = btg.HistoricalCandles(api_key='YOUR_API_KEY')
219
219
  hist_candles.get_intraday_history_candles(ticker='PETR4', market_type='stocks', corporate_events_adj=True, date='2023-10-06', candle='1m', rmv_after_market=True, timezone='UTC', raw_data=False)
220
220
  ```
221
221
 
222
+ ##### Available Tickers
223
+
224
+ ```python
225
+ import btgsolutions_dataservices as btg
226
+ hist_candles = btg.HistoricalCandles(api_key='YOUR_API_KEY')
227
+ hist_candles.get_available_tickers(market_type='stocks', date='2025-05-29')
228
+ ```
229
+
222
230
  ##### Plot Candles
223
231
 
224
232
  ```python
@@ -158,4 +158,32 @@ class HistoricalCandles:
158
158
  return response_data if raw_data else pd.DataFrame(response_data)
159
159
 
160
160
  response = json.loads(response.text)
161
- raise BadResponse(f'Error: {response.get("ApiClientError", "")}.\n{response.get("SuggestedAction", "")}')
161
+ raise BadResponse(f'Error: {response.get("ApiClientError", "")}.\n{response.get("SuggestedAction", "")}')
162
+
163
+ def get_available_tickers(
164
+ self,
165
+ market_type:str,
166
+ date:str,
167
+ ):
168
+ """
169
+ This method provides all tickers available for query.
170
+
171
+ Parameters
172
+ ----------------
173
+ market_type: str
174
+ Market type.
175
+ Options: 'stocks', 'derivatives' or 'indices'.
176
+ Field is required.
177
+ date: string<date>
178
+ Date of requested data. Format: "YYYY-MM-DD".
179
+ Field is required. Example: '2023-10-06'.
180
+ """
181
+
182
+ if market_type not in ['stocks', 'derivatives', 'indices']: raise MarketTypeError(f"Must provide a valid 'market_type' parameter. Input: '{market_type}'. Accepted values: 'stocks', 'derivatives' or 'indices'.")
183
+
184
+ url = f"{url_apis_v3}/marketdata/history/candles/available-tickers/{market_type}?date={date}"
185
+
186
+ response = requests.request("GET", url, headers=self.headers)
187
+ if response.status_code == 200: return response.json()
188
+ response = response.json()
189
+ raise BadResponse(f'Error: {response.get("ApiClientError", "") or response.get("ApiServerMessage", "")}.\n{response.get("SuggestedAction", "")}')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: btgsolutions-dataservices-python-client
3
- Version: 2.11.3
3
+ Version: 2.11.4
4
4
  Summary: Python package containing several classes and data for extracting and manipulating market and trading data.
5
5
  Home-page: https://github.com/BTG-Pactual-Solutions/btgsolutions-dataservices-python-client
6
6
  Author: BTG Solutions Data Services powered by BTG Pactual Solutions
@@ -242,6 +242,14 @@ hist_candles = btg.HistoricalCandles(api_key='YOUR_API_KEY')
242
242
  hist_candles.get_intraday_history_candles(ticker='PETR4', market_type='stocks', corporate_events_adj=True, date='2023-10-06', candle='1m', rmv_after_market=True, timezone='UTC', raw_data=False)
243
243
  ```
244
244
 
245
+ ##### Available Tickers
246
+
247
+ ```python
248
+ import btgsolutions_dataservices as btg
249
+ hist_candles = btg.HistoricalCandles(api_key='YOUR_API_KEY')
250
+ hist_candles.get_available_tickers(market_type='stocks', date='2025-05-29')
251
+ ```
252
+
245
253
  ##### Plot Candles
246
254
 
247
255
  ```python
@@ -22,7 +22,7 @@ description = "Python package containing several classes and data for extracting
22
22
 
23
23
  setup(
24
24
  name='btgsolutions-dataservices-python-client',
25
- version='2.11.3',
25
+ version='2.11.4',
26
26
  description=description,
27
27
  long_description=long_description,
28
28
  long_description_content_type='text/markdown',