transparency_epias/production/productionClient.py
def fit_cost_total(self, startDate, endDate):

        '''
        This function returns a dictionary including following information;
            -LicenseExemptCost
            -Period
            -PortfolioIncome
            -ReneablesCost (RenewableCost **There is a typo in the response)
            -RenewablesTotalCost
            -UnitCost

            
        Parameters:

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

        '''
        val.date_check(startDate, endDate)

        query = "production/renewables-support?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}']

        return response_list

        This function returns a dictionary including following information;
            -LicenseExemptCost
            -Period
            -PortfolioIncome
            -ReneablesCost (RenewableCost **There is a typo in the response)
            -RenewablesTotalCost
            -UnitCost

            
        Parameters:

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

        
This function returns a dictionary including following information;
LicenseExemptCost
Period
PortfolioIncome
ReneablesCost (RenewableCost **There is a typo in the response)
RenewablesTotalCost
UnitCost



Start date in YYYY-MM-DD format.
endDate: End date in YYYY-MM-DD format.
This function returns a dictionary including following information ; LicenseExemptCost Period PortfolioIncome ReneablesCost ( RenewableCost ** There is a typo in the response ) RenewablesTotalCost UnitCost Start date in YYYY - MM - DD format . endDate : End date in YYYY - MM - DD format .
def fit_cost_total(self, startDate, endDate):
        val.date_check(startDate, endDate)
        query = "production/renewables-support?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}']
        return response_list
def fit_cost_total ( self , startDate , endDate ) : val . date_check ( startDate , endDate ) query = "production/renewables-support?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}' ] return response_list
This function returns a dictionary including following information;
LicenseExemptCost
Period
PortfolioIncome
ReneablesCost (RenewableCost **There is a typo in the response)
RenewablesTotalCost
UnitCost
This function returns a dictionary including following information ; LicenseExemptCost Period PortfolioIncome ReneablesCost ( RenewableCost ** There is a typo in the response ) RenewablesTotalCost UnitCost
'''
        This function returns a dictionary including following information;
            -LicenseExemptCost
            -Period
            -PortfolioIncome
            -ReneablesCost (RenewableCost **There is a typo in the response)
            -RenewablesTotalCost
            -UnitCost

            
        Parameters:

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

        '''
self
startDate
endDate