transparency_epias/markets/dayaheadClient.py
def supply_demand_curve(self, date):

        '''
        This function returns 4 different which includes;
            -Datetime values for the range of specified dates as firts item.
            -Price values for the range of specified dates as second item.
            -Supply amount values for the range of specified dates as third item.
            -Demand amount values for the range of specified dates as third item.

        Parameters:

        date: Specific date in YYYY-MM-DD format.

        '''

        val.date_format_check(date)

        query = "market/supply-demand-curve?period="+f'{date}'

        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 = []
        price_list = []
        supply_list = []
        demand_list = []

        for item in response_list:
            date_list.append(item['date'])
            price_list.append(item['price'])
            supply_list.append(item['supply'])
            demand_list.append(item['demand'])

        return date_list, price_list, supply_list, demand_list

        This function returns 4 different which includes;
            -Datetime values for the range of specified dates as firts item.
            -Price values for the range of specified dates as second item.
            -Supply amount values for the range of specified dates as third item.
            -Demand amount values for the range of specified dates as third item.

        Parameters:

        date: Specific date in YYYY-MM-DD format.

        
This function returns 4 different which includes;
Datetime values for the range of specified dates as firts item.
Price values for the range of specified dates as second item.
Supply amount values for the range of specified dates as third item.
Demand amount values for the range of specified dates as third item.



Specific date in YYYY-MM-DD format.
This function returns 4 different which includes ; Datetime values for the range of specified dates as firts item . Price values for the range of specified dates as second item . Supply amount values for the range of specified dates as third item . Demand amount values for the range of specified dates as third item . Specific date in YYYY - MM - DD format .
def supply_demand_curve(self, date):
        val.date_format_check(date)
        query = "market/supply-demand-curve?period="+f'{date}'
        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 = []
        price_list = []
        supply_list = []
        demand_list = []
        for item in response_list:
            date_list.append(item['date'])
            price_list.append(item['price'])
            supply_list.append(item['supply'])
            demand_list.append(item['demand'])
        return date_list, price_list, supply_list, demand_list
def supply_demand_curve ( self , date ) : val . date_format_check ( date ) query = "market/supply-demand-curve?period=" + f'{date}' 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 = [ ] price_list = [ ] supply_list = [ ] demand_list = [ ] for item in response_list : date_list . append ( item [ 'date' ] ) price_list . append ( item [ 'price' ] ) supply_list . append ( item [ 'supply' ] ) demand_list . append ( item [ 'demand' ] ) return date_list , price_list , supply_list , demand_list
This function returns 4 different which includes;
Datetime values for the range of specified dates as firts item.
This function returns 4 different which includes ; Datetime values for the range of specified dates as firts item .
'''
        This function returns 4 different which includes;
            -Datetime values for the range of specified dates as firts item.
            -Price values for the range of specified dates as second item.
            -Supply amount values for the range of specified dates as third item.
            -Demand amount values for the range of specified dates as third item.

        Parameters:

        date: Specific date in YYYY-MM-DD format.

        '''
self
date