transparency_epias/markets/dayaheadClient.py
def imbalance_hourly(self, startDate, endDate):

        '''
        This function returns 3 different which includes;
            -Datetime values for the range of specified dates as firts item.
            -Hourly total positive imbalance values for the range of specified dates as second item.
            -Hourly total negative imbalance values for the range of specified dates as third item.

        Parameters:

        startDate: Start date in YYYY-MM-DD format.
        endDate: End date in YYYY-MM-DD format.

        '''

        val.date_check(startDate, endDate)

        query = "market/energy-imbalance-hourly?startDate="+f'{startDate}'+"&endDate="+f'{endDate}'

        json_result = self.get_request_result(query)

        key_list = list(json_result['body'].keys())

        key_name = key_list[0]

        response_list = json_result['body'][f'{key_name}']

        date_list = []
        postive_imb_list = []
        negative_imb_list = []

        for item in response_list:
            date_list.append(item['date'])
            postive_imb_list.append(item['positiveImbalance'])
            negative_imb_list.append(item['negativeImbalance'])

        return date_list, postive_imb_list, negative_imb_list

        This function returns 3 different which includes;
            -Datetime values for the range of specified dates as firts item.
            -Hourly total positive imbalance values for the range of specified dates as second item.
            -Hourly total negative imbalance values for the range of specified dates as third item.

        Parameters:

        startDate: Start date in YYYY-MM-DD format.
        endDate: End date in YYYY-MM-DD format.

        
This function returns 3 different which includes;
Datetime values for the range of specified dates as firts item.
Hourly total positive imbalance values for the range of specified dates as second item.
Hourly total negative imbalance values for the range of specified dates as third item.



Start date in YYYY-MM-DD format.
endDate: End date in YYYY-MM-DD format.
This function returns 3 different which includes ; Datetime values for the range of specified dates as firts item . Hourly total positive imbalance values for the range of specified dates as second item . Hourly total negative imbalance values for the range of specified dates as third item . Start date in YYYY - MM - DD format . endDate : End date in YYYY - MM - DD format .
def imbalance_hourly(self, startDate, endDate):
        val.date_check(startDate, endDate)
        query = "market/energy-imbalance-hourly?startDate="+f'{startDate}'+"&endDate="+f'{endDate}'
        json_result = self.get_request_result(query)
        key_list = list(json_result['body'].keys())
        key_name = key_list[0]
        response_list = json_result['body'][f'{key_name}']
        date_list = []
        postive_imb_list = []
        negative_imb_list = []
        for item in response_list:
            date_list.append(item['date'])
            postive_imb_list.append(item['positiveImbalance'])
            negative_imb_list.append(item['negativeImbalance'])
        return date_list, postive_imb_list, negative_imb_list
def imbalance_hourly ( self , startDate , endDate ) : val . date_check ( startDate , endDate ) query = "market/energy-imbalance-hourly?startDate=" + f'{startDate}' + "&endDate=" + f'{endDate}' json_result = self . get_request_result ( query ) key_list = list ( json_result [ 'body' ] . keys ( ) ) key_name = key_list [ 0 ] response_list = json_result [ 'body' ] [ f'{key_name}' ] date_list = [ ] postive_imb_list = [ ] negative_imb_list = [ ] for item in response_list : date_list . append ( item [ 'date' ] ) postive_imb_list . append ( item [ 'positiveImbalance' ] ) negative_imb_list . append ( item [ 'negativeImbalance' ] ) return date_list , postive_imb_list , negative_imb_list
This function returns 3 different which includes;
Datetime values for the range of specified dates as firts item.
This function returns 3 different which includes ; Datetime values for the range of specified dates as firts item .
'''
        This function returns 3 different which includes;
            -Datetime values for the range of specified dates as firts item.
            -Hourly total positive imbalance values for the range of specified dates as second item.
            -Hourly total negative imbalance values for the range of specified dates as third item.

        Parameters:

        startDate: Start date in YYYY-MM-DD format.
        endDate: End date in YYYY-MM-DD format.

        '''
self
startDate
endDate