btgsolutions-dataservices-python-client 3.1.0__tar.gz → 3.2.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 (36) hide show
  1. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/PKG-INFO +15 -6
  2. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/btgsolutions_dataservices/rest/intraday_candles.py +3 -3
  3. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/btgsolutions_dataservices/rest/quotes.py +4 -4
  4. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/btgsolutions_dataservices_python_client.egg-info/PKG-INFO +16 -7
  5. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/setup.py +1 -1
  6. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/LICENSE +0 -0
  7. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/MANIFEST.in +0 -0
  8. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/README.md +0 -0
  9. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/btgsolutions_dataservices/__init__.py +0 -0
  10. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/btgsolutions_dataservices/config.py +0 -0
  11. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/btgsolutions_dataservices/exceptions.py +0 -0
  12. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/btgsolutions_dataservices/rest/__init__.py +0 -0
  13. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/btgsolutions_dataservices/rest/authenticator.py +0 -0
  14. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/btgsolutions_dataservices/rest/bulk_data.py +0 -0
  15. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/btgsolutions_dataservices/rest/company_data.py +0 -0
  16. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/btgsolutions_dataservices/rest/corporate_events.py +0 -0
  17. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/btgsolutions_dataservices/rest/hfn.py +0 -0
  18. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/btgsolutions_dataservices/rest/historical_candles.py +0 -0
  19. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/btgsolutions_dataservices/rest/intraday_tick_data.py +0 -0
  20. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/btgsolutions_dataservices/rest/public_sources.py +0 -0
  21. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/btgsolutions_dataservices/rest/reference_data.py +0 -0
  22. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/btgsolutions_dataservices/rest/stock_loan.py +0 -0
  23. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/btgsolutions_dataservices/rest/ticker_last_event.py +0 -0
  24. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/btgsolutions_dataservices/rest/ticker_last_event_polling.py +0 -0
  25. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/btgsolutions_dataservices/websocket/__init__.py +0 -0
  26. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/btgsolutions_dataservices/websocket/hfn_websocket_client.py +0 -0
  27. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/btgsolutions_dataservices/websocket/market_data_feed.py +0 -0
  28. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/btgsolutions_dataservices/websocket/market_data_websocket_client.py +0 -0
  29. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/btgsolutions_dataservices/websocket/websocket_default_functions.py +0 -0
  30. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/btgsolutions_dataservices_python_client.egg-info/SOURCES.txt +0 -0
  31. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/btgsolutions_dataservices_python_client.egg-info/dependency_links.txt +0 -0
  32. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/btgsolutions_dataservices_python_client.egg-info/requires.txt +0 -0
  33. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/btgsolutions_dataservices_python_client.egg-info/top_level.txt +0 -0
  34. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/pyproject.toml +0 -0
  35. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/requirements.txt +0 -0
  36. {btgsolutions_dataservices_python_client-3.1.0 → btgsolutions_dataservices_python_client-3.2.0}/setup.cfg +0 -0
@@ -1,14 +1,25 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: btgsolutions_dataservices_python_client
3
- Version: 3.1.0
3
+ Version: 3.2.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
7
- License: UNKNOWN
8
- Platform: UNKNOWN
9
7
  Requires-Python: >=3.9,<3.14
10
8
  Description-Content-Type: text/markdown
11
9
  License-File: LICENSE
10
+ Requires-Dist: pandas>=2.2.2
11
+ Requires-Dist: websocket-client>=1.8.0
12
+ Requires-Dist: PyJWT>=2.8.0
13
+ Requires-Dist: requests>=2.32.3
14
+ Requires-Dist: pyarrow>=17.0.0
15
+ Dynamic: author
16
+ Dynamic: description
17
+ Dynamic: description-content-type
18
+ Dynamic: home-page
19
+ Dynamic: license-file
20
+ Dynamic: requires-dist
21
+ Dynamic: requires-python
22
+ Dynamic: summary
12
23
 
13
24
  # BTG Solutions - Data Services
14
25
 
@@ -469,5 +480,3 @@ ref = btg.ReferenceData(api_key='YOUR_API_KEY')
469
480
  ref.ticker_reference(tickers=['VALE3','PETR4'])
470
481
  ```
471
482
 
472
-
473
-
@@ -2,7 +2,7 @@
2
2
  from typing import Optional
3
3
  from ..exceptions import BadResponse, MarketTypeError, DelayError
4
4
  import requests
5
- from ..config import url_apis_v3
5
+ from ..config import base_url
6
6
  import json
7
7
  import pandas as pd
8
8
  from .authenticator import Authenticator
@@ -111,7 +111,7 @@ class IntradayCandles:
111
111
 
112
112
  tickers = ','.join(tickers) if type(tickers) is list else tickers
113
113
 
114
- url = f"{url_apis_v3}/marketdata/candles/intraday/{delay}/{market_type}?tickers={tickers}&candle_period={candle_period}&mode={mode}&timezone={timezone}"
114
+ url = f"{base_url}/v1/marketdata/br/b3/{delay}/intraday-candles/{market_type}?tickers={tickers}&candle_period={candle_period}&mode={mode}&timezone={timezone}"
115
115
 
116
116
  if start: url += f'&start={start}'
117
117
 
@@ -153,7 +153,7 @@ class IntradayCandles:
153
153
 
154
154
  if delay not in ['delayed', 'realtime']: raise DelayError(f"Must provide a valid 'delay' parameter. Input: '{delay}'. Accepted values: 'delayed' or 'realtime'.")
155
155
 
156
- url = f"{url_apis_v3}/marketdata/candles/intraday/{delay}/{market_type}/available_tickers"
156
+ url = f"{base_url}/v1/marketdata/br/b3/{delay}/intraday-candles/{market_type}/available_tickers"
157
157
 
158
158
  response = requests.request("GET", url, headers=self.headers)
159
159
  if response.status_code == 200: return json.loads(response.text)
@@ -1,7 +1,7 @@
1
1
  from typing import Optional
2
2
  from ..exceptions import BadResponse
3
3
  import requests
4
- from ..config import url_apis
4
+ from ..config import base_url
5
5
  from .authenticator import Authenticator
6
6
  import json
7
7
  import pandas as pd
@@ -85,7 +85,7 @@ class Quotes:
85
85
  except:
86
86
  raise Exception(f"'tickers' parameter must be an array of strings.")
87
87
 
88
- url = f"{url_apis}/marketdata/quotes/{market_type}/{mode}/tickers?tickers={tickers}"
88
+ url = f"{base_url}/api/v1/marketdata/br/b3/{mode}/quotes/{market_type}/tickers?tickers={tickers}"
89
89
 
90
90
  response = requests.request("GET", url, headers=self.headers)
91
91
  if response.status_code == 200:
@@ -148,7 +148,7 @@ class Quotes:
148
148
  if not isinstance(ticker_type, str):
149
149
  raise Exception(f"'ticker_type' parameter must be a string. Input: '{ticker_type}'")
150
150
 
151
- url = f"{url_apis}/marketdata/quotes/{market_type}/{mode}/top-bottom?variation={variation}&n={n}&type={ticker_type}"
151
+ url = f"{base_url}/api/v1/marketdata/br/b3/{mode}/quotes/{market_type}/top-bottom?variation={variation}&n={n}&type={ticker_type}"
152
152
 
153
153
  response = requests.request("GET", url, headers=self.headers)
154
154
  if response.status_code == 200:
@@ -185,7 +185,7 @@ class Quotes:
185
185
  if mode not in self.available_modes:
186
186
  raise Exception(f"Must provide a valid 'mode' parameter. Input: '{mode}'. Accepted values: {self.available_modes}")
187
187
 
188
- url = f"{url_apis}/marketdata/quotes/{market_type}/{mode}/available-tickers"
188
+ url = f"{base_url}/api/v1/marketdata/br/b3/{mode}/quotes/{market_type}/available-tickers"
189
189
  response = requests.request("GET", url, headers=self.headers)
190
190
 
191
191
  if response.status_code == 200:
@@ -1,14 +1,25 @@
1
- Metadata-Version: 2.1
2
- Name: btgsolutions-dataservices-python-client
3
- Version: 3.1.0
1
+ Metadata-Version: 2.4
2
+ Name: btgsolutions_dataservices_python_client
3
+ Version: 3.2.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
7
- License: UNKNOWN
8
- Platform: UNKNOWN
9
7
  Requires-Python: >=3.9,<3.14
10
8
  Description-Content-Type: text/markdown
11
9
  License-File: LICENSE
10
+ Requires-Dist: pandas>=2.2.2
11
+ Requires-Dist: websocket-client>=1.8.0
12
+ Requires-Dist: PyJWT>=2.8.0
13
+ Requires-Dist: requests>=2.32.3
14
+ Requires-Dist: pyarrow>=17.0.0
15
+ Dynamic: author
16
+ Dynamic: description
17
+ Dynamic: description-content-type
18
+ Dynamic: home-page
19
+ Dynamic: license-file
20
+ Dynamic: requires-dist
21
+ Dynamic: requires-python
22
+ Dynamic: summary
12
23
 
13
24
  # BTG Solutions - Data Services
14
25
 
@@ -469,5 +480,3 @@ ref = btg.ReferenceData(api_key='YOUR_API_KEY')
469
480
  ref.ticker_reference(tickers=['VALE3','PETR4'])
470
481
  ```
471
482
 
472
-
473
-
@@ -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='3.1.0',
25
+ version='3.2.0',
26
26
  description=description,
27
27
  long_description=long_description,
28
28
  long_description_content_type='text/markdown',