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

        '''
        This function returns 3 different which includes;
            -Datetime values for the range of specified dates as firts item.
            -Income values for the range of specified dates as second item.
            -Period information for the range of specified dates as third item.
            -Period type information for the range of specified dates as fourth item.

        Parameters:

        period: Period type shoul be defined as DAILY, WEEKLY, MONTHLY, or PERIODIC.
        startDate: Start date in YYYY-MM-DD format.
        endDate: End date in YYYY-MM-DD format.

        '''

        val.date_check(startDate, endDate)

        query = "market/day-ahead-market-income-summary?startDate="+f'{startDate}'+"&endDate="+f'{endDate}'+"&period="+f'{period}'

        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 = []
        income_list = []
        period_list = []
        period_type_list = []

        for item in response_list:
            date_list.append(item['date'])
            income_list.append(item['income'])
            period_list.append(item['period'])
            period_type_list.append(item['periodTpye'])

        return date_list, income_list, period_list, period_type_list

        This function returns 3 different which includes;
            -Datetime values for the range of specified dates as firts item.
            -Income values for the range of specified dates as second item.
            -Period information for the range of specified dates as third item.
            -Period type information for the range of specified dates as fourth item.

        Parameters:

        period: Period type shoul be defined as DAILY, WEEKLY, MONTHLY, or PERIODIC.
        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.
Income values for the range of specified dates as second item.
Period information for the range of specified dates as third item.
Period type information for the range of specified dates as fourth item.




This function returns 3 different which includes ; Datetime values for the range of specified dates as firts item . Income values for the range of specified dates as second item . Period information for the range of specified dates as third item . Period type information for the range of specified dates as fourth item .
def market_income_summary(self, period, startDate, endDate):
        val.date_check(startDate, endDate)
        query = "market/day-ahead-market-income-summary?startDate="+f'{startDate}'+"&endDate="+f'{endDate}'+"&period="+f'{period}'
        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 = []
        income_list = []
        period_list = []
        period_type_list = []
        for item in response_list:
            date_list.append(item['date'])
            income_list.append(item['income'])
            period_list.append(item['period'])
            period_type_list.append(item['periodTpye'])
        return date_list, income_list, period_list, period_type_list
def market_income_summary ( self , period , startDate , endDate ) : val . date_check ( startDate , endDate ) query = "market/day-ahead-market-income-summary?startDate=" + f'{startDate}' + "&endDate=" + f'{endDate}' + "&period=" + f'{period}' 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 = [ ] income_list = [ ] period_list = [ ] period_type_list = [ ] for item in response_list : date_list . append ( item [ 'date' ] ) income_list . append ( item [ 'income' ] ) period_list . append ( item [ 'period' ] ) period_type_list . append ( item [ 'periodTpye' ] ) return date_list , income_list , period_list , period_type_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.
            -Income values for the range of specified dates as second item.
            -Period information for the range of specified dates as third item.
            -Period type information for the range of specified dates as fourth item.

        Parameters:

        period: Period type shoul be defined as DAILY, WEEKLY, MONTHLY, or PERIODIC.
        startDate: Start date in YYYY-MM-DD format.
        endDate: End date in YYYY-MM-DD format.

        '''
self
period
startDate
endDate