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

        '''
        This function returns 2 lists including;
            -Datetime list that covers the range of startDate and endDate parameters as first item.
            -MCP values for specified range of dates 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/day-ahead-mcp?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}']

        datetime_list = []
        price_list = []

        for item_count in response_list:
            price_list.append(item_count['price'])
            datetime_list.append(item_count['date'])

        return datetime_list, price_list

        This function returns 2 lists including;
            -Datetime list that covers the range of startDate and endDate parameters as first item.
            -MCP values for specified range of dates 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;
Datetime list that covers the range of startDate and endDate parameters as first item.
MCP values for specified range of dates as second item.



Start date in YYYY-MM-DD format.
endDate: End date in YYYY-MM-DD format.
This function returns 2 lists including ; Datetime list that covers the range of startDate and endDate parameters as first item . MCP values for specified range of dates as second item . Start date in YYYY - MM - DD format . endDate : End date in YYYY - MM - DD format .
def mcp(self, startDate, endDate):
        val.date_check(startDate, endDate)
        query = "market/day-ahead-mcp?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}']
        datetime_list = []
        price_list = []
        for item_count in response_list:
            price_list.append(item_count['price'])
            datetime_list.append(item_count['date'])
        return datetime_list, price_list
def mcp ( self , startDate , endDate ) : val . date_check ( startDate , endDate ) query = "market/day-ahead-mcp?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}' ] datetime_list = [ ] price_list = [ ] for item_count in response_list : price_list . append ( item_count [ 'price' ] ) datetime_list . append ( item_count [ 'date' ] ) return datetime_list , price_list
This function returns 2 lists including;
Datetime list that covers the range of startDate and endDate parameters as first item.
This function returns 2 lists including ; Datetime list that covers the range of startDate and endDate parameters as first item .
'''
        This function returns 2 lists including;
            -Datetime list that covers the range of startDate and endDate parameters as first item.
            -MCP values for specified range of dates as second item.

        Parameters:

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

        '''
self
startDate
endDate