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

        '''
        This function returns two different lists according to is_statistic parameter, which includes;
            -Statistical results for the range of specified dates.
            -Date, originatingFromBids, originatingFromOffers, originatingFromRounding and
            total values for the range of specified dates.

        Parameters:

        startDate: Start date in YYYY-MM-DD format.
        endDate: End date in YYYY-MM-DD format.
        is_statistic: An integer or string value shoul be 1 or TRUE.

        '''

        val.date_check(startDate, endDate)

        query = "market/day-ahead-diff-funds?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]
        second_key_name = key_list[1]

        if is_statistic == 1 or is_statistic == 'TRUE' :
            response_list = json_result['body'][f'{second_key_name}']

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

        return response_list

        This function returns two different lists according to is_statistic parameter, which includes;
            -Statistical results for the range of specified dates.
            -Date, originatingFromBids, originatingFromOffers, originatingFromRounding and
            total values for the range of specified dates.

        Parameters:

        startDate: Start date in YYYY-MM-DD format.
        endDate: End date in YYYY-MM-DD format.
        is_statistic: An integer or string value shoul be 1 or TRUE.

        
This function returns two different lists according to is_statistic parameter, which includes;
Statistical results for the range of specified dates.
Date, originatingFromBids, originatingFromOffers, originatingFromRounding and
total values for the range of specified dates.



Start date in YYYY-MM-DD format.
endDate: End date in YYYY-MM-DD format.
is_statistic: An integer or string value shoul be 1 or TRUE.
This function returns two different lists according to is_statistic parameter which includes ; Statistical results for the range of specified dates . Date originatingFromBids originatingFromOffers originatingFromRounding and total values for the range of specified dates . Start date in YYYY - MM - DD format . endDate : End date in YYYY - MM - DD format . is_statistic : An integer or string value shoul be 1 or TRUE .
def diff_fund(self, startDate, endDate, is_statistic):
        val.date_check(startDate, endDate)
        query = "market/day-ahead-diff-funds?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]
        second_key_name = key_list[1]
        if is_statistic == 1 or is_statistic == 'TRUE' :
            response_list = json_result['body'][f'{second_key_name}']
        else:
            response_list = json_result['body'][f'{key_name}']
        return response_list
def diff_fund ( self , startDate , endDate , is_statistic ) : val . date_check ( startDate , endDate ) query = "market/day-ahead-diff-funds?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 ] second_key_name = key_list [ 1 ] if is_statistic == 1 or is_statistic == 'TRUE' : response_list = json_result [ 'body' ] [ f'{second_key_name}' ] else : response_list = json_result [ 'body' ] [ f'{key_name}' ] return response_list
This function returns two different lists according to is_statistic parameter, which includes;
Statistical results for the range of specified dates.
This function returns two different lists according to is_statistic parameter which includes ; Statistical results for the range of specified dates .
'''
        This function returns two different lists according to is_statistic parameter, which includes;
            -Statistical results for the range of specified dates.
            -Date, originatingFromBids, originatingFromOffers, originatingFromRounding and
            total values for the range of specified dates.

        Parameters:

        startDate: Start date in YYYY-MM-DD format.
        endDate: End date in YYYY-MM-DD format.
        is_statistic: An integer or string value shoul be 1 or TRUE.

        '''
self
startDate
endDate
is_statistic