transparency_epias/markets/intradayClient.py
def income_intraday(self, startDate, endDate):

        '''
        This function returns 2 lists including;
            -Date list for specified range of date as first item.
            -Intraday income values for specified range of date as second 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/intra-day-aof?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 = []
        income_list = []

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

        return date_list, income_list

        This function returns 2 lists including;
            -Date list for specified range of date as first item.
            -Intraday income values for specified range of date as second item.

        Parameters:

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

        
This function returns 2 lists including;
Date list for specified range of date as first item.
Intraday income values for specified range of date as second item.



Start date in YYYY-MM-DD format.
endDate: End date in YYYY-MM-DD format.
This function returns 2 lists including ; Date list for specified range of date as first item . Intraday income values for specified range of date as second item . Start date in YYYY - MM - DD format . endDate : End date in YYYY - MM - DD format .
def income_intraday(self, startDate, endDate):
        val.date_check(startDate, endDate)
        query = "market/intra-day-aof?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 = []
        income_list = []
        for item in response_list:
            date_list.append(item['date'])
            income_list.append(item['income'])
        return date_list, income_list
def income_intraday ( self , startDate , endDate ) : val . date_check ( startDate , endDate ) query = "market/intra-day-aof?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 = [ ] income_list = [ ] for item in response_list : date_list . append ( item [ 'date' ] ) income_list . append ( item [ 'income' ] ) return date_list , income_list
This function returns 2 lists including;
Date list for specified range of date as first item.
This function returns 2 lists including ; Date list for specified range of date as first item .
'''
        This function returns 2 lists including;
            -Date list for specified range of date as first item.
            -Intraday income values for specified range of date as second item.

        Parameters:

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

        '''
self
startDate
endDate