Skip to content

Commit 675c425

Browse files
committed
fixed monitoring endpoint for intraday
1 parent dca73c1 commit 675c425

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

jao/jao.py

+8
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,14 @@ def __init__(self, version):
176176
else:
177177
raise NotImplementedError
178178

179+
def query_monitoring(self, day: pd.Timestamp) -> List[Dict]:
180+
# use this quick hack because this monitoring endpoint differs from all others
181+
base_url_old = self.BASEURL
182+
self.BASEURL = self.BASEURL.replace("IDCCA_", '').replace("IDCCB_", '')
183+
data = self._query_base_day(day, 'monitoring')
184+
self.BASEURL = base_url_old
185+
return data
186+
179187
def query_lta(self, d_from: pd.Timestamp, d_to: pd.Timestamp):
180188
raise NotImplementedError
181189

0 commit comments

Comments
 (0)