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

        '''
        This function returns 3 different which includes;
            -Date values for the range of specified dates as firts item.
            -Time values for the range of specified dates as firts item.
            -Total positive imbalance amount values for the range of specified dates as second item.
            -Total negative imbalance amount 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/imbalance-amount?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 = []
        time_list = []
        postive_imb_list = []
        negative_imb_list = []

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

        return date_list, time_list, postive_imb_list, negative_imb_list

        This function returns 3 different which includes;
            -Date values for the range of specified dates as firts item.
            -Time values for the range of specified dates as firts item.
            -Total positive imbalance amount values for the range of specified dates as second item.
            -Total negative imbalance amount 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;
Date values for the range of specified dates as firts item.
Time values for the range of specified dates as firts item.
Total positive imbalance amount values for the range of specified dates as second item.
Total negative imbalance amount 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 ; Date values for the range of specified dates as firts item . Time values for the range of specified dates as firts item . Total positive imbalance amount values for the range of specified dates as second item . Total negative imbalance amount 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_amount(self, startDate, endDate):
        val.date_check(startDate, endDate)
        query = "market/imbalance-amount?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 = []
        time_list = []
        postive_imb_list = []
        negative_imb_list = []
        for item in response_list:
            date_list.append(item['date'])
            time_list.append(item['time'])
            postive_imb_list.append(item['positiveImbalance'])
            negative_imb_list.append(item['negativeImbalance'])
        return date_list, time_list, postive_imb_list, negative_imb_list
def imbalance_amount ( self , startDate , endDate ) : val . date_check ( startDate , endDate ) query = "market/imbalance-amount?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 = [ ] time_list = [ ] postive_imb_list = [ ] negative_imb_list = [ ] for item in response_list : date_list . append ( item [ 'date' ] ) time_list . append ( item [ 'time' ] ) postive_imb_list . append ( item [ 'positiveImbalance' ] ) negative_imb_list . append ( item [ 'negativeImbalance' ] ) return date_list , time_list , postive_imb_list , negative_imb_list
This function returns 3 different which includes;
Date values for the range of specified dates as firts item.
This function returns 3 different which includes ; Date values for the range of specified dates as firts item .
'''
        This function returns 3 different which includes;
            -Date values for the range of specified dates as firts item.
            -Time values for the range of specified dates as firts item.
            -Total positive imbalance amount values for the range of specified dates as second item.
            -Total negative imbalance amount 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