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

        '''
        This function returns 3 different which includes;
            -Datetime values for the range of specified dates as firts item.
            -Quantity values for the range of specified dates as second item.
            -Next hour values for the range of specified dates as third 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/bilateral-contract?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 = []
        quantity_list = []
        next_hour_datelist = []

        for item in response_list:
            date_list.append(item['date'])
            quantity_list.append(item['quantity'])
            next_hour_datelist.append(item['nextHour'])

        return date_list, quantity_list, next_hour_datelist

        This function returns 3 different which includes;
            -Datetime values for the range of specified dates as firts item.
            -Quantity values for the range of specified dates as second item.
            -Next hour values for the range of specified dates as third item.

        Parameters:

        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.
Quantity values for the range of specified dates as second item.
Next hour values for the range of specified dates as third item.



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 . Quantity values for the range of specified dates as second item . Next hour values for the range of specified dates as third item . Start date in YYYY - MM - DD format . endDate : End date in YYYY - MM - DD format .
def bilateralContract(self, startDate, endDate):
        val.date_check(startDate, endDate)
        query = "market/bilateral-contract?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 = []
        quantity_list = []
        next_hour_datelist = []
        for item in response_list:
            date_list.append(item['date'])
            quantity_list.append(item['quantity'])
            next_hour_datelist.append(item['nextHour'])
        return date_list, quantity_list, next_hour_datelist
def bilateralContract ( self , startDate , endDate ) : val . date_check ( startDate , endDate ) query = "market/bilateral-contract?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 = [ ] quantity_list = [ ] next_hour_datelist = [ ] for item in response_list : date_list . append ( item [ 'date' ] ) quantity_list . append ( item [ 'quantity' ] ) next_hour_datelist . append ( item [ 'nextHour' ] ) return date_list , quantity_list , next_hour_datelist
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.
            -Quantity values for the range of specified dates as second item.
            -Next hour values for the range of specified dates as third item.

        Parameters:

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

        '''
self
startDate
endDate