btgsolutions-dataservices-python-client 2.13.1__tar.gz → 2.14.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.
- {btgsolutions_dataservices_python_client-2.13.1/btgsolutions_dataservices_python_client.egg-info → btgsolutions_dataservices_python_client-2.14.0}/PKG-INFO +1 -1
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/btgsolutions_dataservices/rest/ticker_last_event.py +34 -2
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0/btgsolutions_dataservices_python_client.egg-info}/PKG-INFO +1 -1
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/setup.py +1 -1
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/LICENSE +0 -0
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/MANIFEST.in +0 -0
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/README.md +0 -0
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/btgsolutions_dataservices/__init__.py +0 -0
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/btgsolutions_dataservices/config.py +0 -0
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/btgsolutions_dataservices/exceptions.py +0 -0
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/btgsolutions_dataservices/rest/__init__.py +0 -0
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/btgsolutions_dataservices/rest/authenticator.py +0 -0
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/btgsolutions_dataservices/rest/bulk_data.py +0 -0
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/btgsolutions_dataservices/rest/company_data.py +0 -0
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/btgsolutions_dataservices/rest/corporate_events.py +0 -0
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/btgsolutions_dataservices/rest/hfn.py +0 -0
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/btgsolutions_dataservices/rest/historical_candles.py +0 -0
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/btgsolutions_dataservices/rest/intraday_candles.py +0 -0
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/btgsolutions_dataservices/rest/intraday_tick_data.py +0 -0
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/btgsolutions_dataservices/rest/public_sources.py +0 -0
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/btgsolutions_dataservices/rest/quotes.py +0 -0
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/btgsolutions_dataservices/rest/reference_data.py +0 -0
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/btgsolutions_dataservices/websocket/__init__.py +0 -0
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/btgsolutions_dataservices/websocket/hfn_websocket_client.py +0 -0
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/btgsolutions_dataservices/websocket/market_data_feed.py +0 -0
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/btgsolutions_dataservices/websocket/market_data_websocket_client.py +0 -0
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/btgsolutions_dataservices/websocket/websocket_default_functions.py +0 -0
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/btgsolutions_dataservices_python_client.egg-info/SOURCES.txt +0 -0
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/btgsolutions_dataservices_python_client.egg-info/dependency_links.txt +0 -0
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/btgsolutions_dataservices_python_client.egg-info/requires.txt +0 -0
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/btgsolutions_dataservices_python_client.egg-info/top_level.txt +0 -0
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/pyproject.toml +0 -0
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/requirements.txt +0 -0
- {btgsolutions_dataservices_python_client-2.13.1 → btgsolutions_dataservices_python_client-2.14.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: btgsolutions-dataservices-python-client
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.14.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
|
-
from typing import Optional
|
|
1
|
+
from typing import Optional, List
|
|
2
2
|
from ..exceptions import BadResponse
|
|
3
3
|
import requests
|
|
4
4
|
from ..config import url_api_v1
|
|
@@ -82,7 +82,7 @@ class TickerLastEvent:
|
|
|
82
82
|
def get_tobs(self, data_type:str, raw_data:bool=False):
|
|
83
83
|
|
|
84
84
|
"""
|
|
85
|
-
This method
|
|
85
|
+
This method provides the last available top of book for all tickers of the given market type.
|
|
86
86
|
|
|
87
87
|
Parameters
|
|
88
88
|
----------------
|
|
@@ -112,6 +112,38 @@ class TickerLastEvent:
|
|
|
112
112
|
response = json.loads(response.text)
|
|
113
113
|
raise BadResponse(f'Error: {response.get("error", "")}')
|
|
114
114
|
|
|
115
|
+
def get_status(self, tickers:List[str]=None, raw_data:bool=False):
|
|
116
|
+
|
|
117
|
+
"""
|
|
118
|
+
This method provides the current ticker trading status information.
|
|
119
|
+
|
|
120
|
+
Parameters
|
|
121
|
+
----------------
|
|
122
|
+
tickers: List[str]
|
|
123
|
+
Ticker symbol.
|
|
124
|
+
Field is not required. Default: None
|
|
125
|
+
Example: ['PETR4', 'VALE3', 'DOLM25'].
|
|
126
|
+
If no ticker is provided, it returns trading status information for all available tickers.
|
|
127
|
+
raw_data: bool
|
|
128
|
+
If false, returns data in a dataframe. If true, returns raw data.
|
|
129
|
+
Field is not required. Default: False.
|
|
130
|
+
"""
|
|
131
|
+
|
|
132
|
+
if tickers:
|
|
133
|
+
tickers = ','.join(tickers)
|
|
134
|
+
url = f"{url_api_v1}/marketdata/last-event/status/all/batch?tickers={tickers}"
|
|
135
|
+
else:
|
|
136
|
+
url = f"{url_api_v1}/marketdata/last-event/status/all/batch"
|
|
137
|
+
|
|
138
|
+
response = requests.request("GET", url, headers={"authorization": f"Bearer {self.authenticator.token}"})
|
|
139
|
+
if response.status_code == 200:
|
|
140
|
+
if raw_data:
|
|
141
|
+
return response.json()
|
|
142
|
+
else:
|
|
143
|
+
return pd.DataFrame(response.json())
|
|
144
|
+
else:
|
|
145
|
+
response = json.loads(response.text)
|
|
146
|
+
raise BadResponse(f'Error: {response}')
|
|
115
147
|
|
|
116
148
|
def get_available_tickers(self,type:str, data_type:str):
|
|
117
149
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: btgsolutions-dataservices-python-client
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.14.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
|
|
@@ -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.
|
|
25
|
+
version='2.14.0',
|
|
26
26
|
description=description,
|
|
27
27
|
long_description=long_description,
|
|
28
28
|
long_description_content_type='text/markdown',
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|