btgsolutions-dataservices-python-client 4.7.0__tar.gz → 4.8.0__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 (50) hide show
  1. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/PKG-INFO +1 -1
  2. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/__init__.py +1 -1
  3. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/rest/dataservices_catalog.py +15 -0
  4. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/rest/ticker_last_event.py +27 -0
  5. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices_python_client.egg-info/PKG-INFO +1 -1
  6. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/LICENSE +0 -0
  7. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/MANIFEST.in +0 -0
  8. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/README.md +0 -0
  9. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/config.py +0 -0
  10. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/exceptions.py +0 -0
  11. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/rest/__init__.py +0 -0
  12. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/rest/algohunter.py +0 -0
  13. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/rest/alternative_data_catalog.py +0 -0
  14. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/rest/alternative_data_companies.py +0 -0
  15. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/rest/alternative_data_funds.py +0 -0
  16. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/rest/alternative_data_macro_markets.py +0 -0
  17. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/rest/alternative_data_metadata.py +0 -0
  18. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/rest/alternative_data_ownership.py +0 -0
  19. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/rest/alternative_data_people.py +0 -0
  20. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/rest/authenticator.py +0 -0
  21. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/rest/book_scope.py +0 -0
  22. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/rest/broker_analytics.py +0 -0
  23. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/rest/broker_reference.py +0 -0
  24. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/rest/bulk_data.py +0 -0
  25. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/rest/company_data.py +0 -0
  26. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/rest/corporate_events.py +0 -0
  27. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/rest/hfn.py +0 -0
  28. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/rest/historical_candles.py +0 -0
  29. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/rest/historical_candles_crypto.py +0 -0
  30. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/rest/intraday_candles.py +0 -0
  31. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/rest/intraday_tick_data.py +0 -0
  32. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/rest/public_sources.py +0 -0
  33. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/rest/quotes.py +0 -0
  34. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/rest/reference_data.py +0 -0
  35. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/rest/stock_loan.py +0 -0
  36. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/rest/ticker_last_event_polling.py +0 -0
  37. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/websocket/__init__.py +0 -0
  38. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/websocket/broker_analytics.py +0 -0
  39. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/websocket/hfn_websocket_client.py +0 -0
  40. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/websocket/market_data_feed.py +0 -0
  41. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/websocket/market_data_websocket_client.py +0 -0
  42. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices/websocket/websocket_default_functions.py +0 -0
  43. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices_python_client.egg-info/SOURCES.txt +0 -0
  44. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices_python_client.egg-info/dependency_links.txt +0 -0
  45. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices_python_client.egg-info/requires.txt +0 -0
  46. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/btgsolutions_dataservices_python_client.egg-info/top_level.txt +0 -0
  47. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/pyproject.toml +0 -0
  48. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/requirements.txt +0 -0
  49. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/setup.cfg +0 -0
  50. {btgsolutions_dataservices_python_client-4.7.0 → btgsolutions_dataservices_python_client-4.8.0}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: btgsolutions_dataservices_python_client
3
- Version: 4.7.0
3
+ Version: 4.8.0
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
@@ -1,4 +1,4 @@
1
- __version__ = "4.7.0"
1
+ __version__ = "4.8.0"
2
2
 
3
3
  from .websocket import *
4
4
  from .rest import *
@@ -575,6 +575,20 @@ DATASERVICES_ENDPOINTS: dict[str, dict[str, Any]] = {
575
575
  "not a last trade or top-of-book snapshot."
576
576
  ),
577
577
  },
578
+ "TickerLastEvent.get_settlement_price": {
579
+ "category": "last_event",
580
+ "path": "/api/v1/marketdata/br/b3/snapshot/settlement-price/batch",
581
+ "method": "GET",
582
+ "client": "TickerLastEvent",
583
+ "description": (
584
+ "Return the most recent settlement price records for a list of B3 "
585
+ "derivatives tickers. Results are grouped by ticker and price type."
586
+ ),
587
+ "parameters": {
588
+ "tickers": "List of derivatives tickers such as ['WDOH25', 'WINM25'].",
589
+ },
590
+ "relationships": ["ticker_discovery", "reference_enrichment"],
591
+ },
578
592
  "ReferenceData.ticker_reference": {
579
593
  "category": "reference_data",
580
594
  "path": "/api/v1/marketdata/br/b3/snapshot/instruments/batch",
@@ -997,6 +1011,7 @@ DATASERVICES_TOOL_ENDPOINTS: dict[str, str] = {
997
1011
  "get_last_top_of_book": "TickerLastEvent.get_tobs",
998
1012
  "get_trading_status": "TickerLastEvent.get_status",
999
1013
  "list_last_event_tickers": "TickerLastEvent.get_available_tickers",
1014
+ "get_last_settlement_price": "TickerLastEvent.get_settlement_price",
1000
1015
  "get_ticker_reference": "ReferenceData.ticker_reference",
1001
1016
  "get_corporate_events": "CorporateEvents.get",
1002
1017
  "get_company_general_info": "CompanyData.general_info",
@@ -145,6 +145,33 @@ class TickerLastEvent:
145
145
  response = json.loads(response.text)
146
146
  raise BadResponse(f'Error: {response}')
147
147
 
148
+ def get_settlement_price(self, tickers: List[str], raw_data: bool = False):
149
+
150
+ """
151
+ This method provides the most recent settlement price records for a list of B3 derivatives tickers.
152
+
153
+ Parameters
154
+ ----------------
155
+ tickers: List[str]
156
+ List of ticker symbols.
157
+ Field is required. Example: ['WDOH25', 'WINM25'].
158
+ raw_data: bool
159
+ If false, returns data in a dataframe. If true, returns raw data.
160
+ Field is not required. Default: False.
161
+ """
162
+
163
+ url = f"{base_url}/api/v1/marketdata/br/b3/snapshot/settlement-price/batch?tickers={','.join(tickers)}"
164
+
165
+ response = requests.request("GET", url, headers={"authorization": f"Bearer {self.authenticator.token}"})
166
+ if response.status_code == 200:
167
+ if raw_data:
168
+ return response.json()
169
+ else:
170
+ return pd.DataFrame([r for records in response.json().values() for r in records])
171
+ else:
172
+ response = json.loads(response.text)
173
+ raise BadResponse(f'Error: {response.get("ApiClientError", response.get("error", ""))}')
174
+
148
175
  def get_available_tickers(self,type:str, data_type:str):
149
176
 
150
177
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: btgsolutions-dataservices-python-client
3
- Version: 4.7.0
3
+ Version: 4.8.0
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