transparency_epias/markets/dayaheadClient.py
def bilateralContract_all(self, startDate, endDate, eic=None):

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

        Parameters:

        eic (Optional): A code for the specific company e.g: "40X000000009447G".
        startDate: Start date in YYYY-MM-DD format.
        endDate: End date in YYYY-MM-DD format.

        '''

        val.date_check(startDate, endDate)

        if eic != None:
            query = "market/bilateral-contract?startDate="+f'{startDate}'+"&endDate="+f'{endDate}'+"&eic="+f'{eic}'
        else:
            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_bid = []
        quantity_ask = []

        for item in response_list:
            date_list.append(item['date'])
            quantity_bid.append(item['quantityBid'])
            quantity_ask.append(item['quantityBidAsk'])

        return date_list, quantity_bid, quantity_ask

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

        Parameters:

        eic (Optional): A code for the specific company e.g: "40X000000009447G".
        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.
Bid Quantity values for the range of specified dates as second item.
Ask Quantity values for the range of specified dates as third item.



eic (Optional): A code for the specific company e.g: "40X000000009447G".
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 . Bid Quantity values for the range of specified dates as second item . Ask Quantity values for the range of specified dates as third item . eic ( Optional ) : A code for the specific company e . g : " 40X000000009447G " . startDate : Start date in YYYY - MM - DD format . endDate : End date in YYYY - MM - DD format .
def bilateralContract_all(self, startDate, endDate, eic=None):
        val.date_check(startDate, endDate)
        if eic != None:
            query = "market/bilateral-contract?startDate="+f'{startDate}'+"&endDate="+f'{endDate}'+"&eic="+f'{eic}'
        else:
            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_bid = []
        quantity_ask = []
        for item in response_list:
            date_list.append(item['date'])
            quantity_bid.append(item['quantityBid'])
            quantity_ask.append(item['quantityBidAsk'])
        return date_list, quantity_bid, quantity_ask
def bilateralContract_all ( self , startDate , endDate , eic = None ) : val . date_check ( startDate , endDate ) if eic != None : query = "market/bilateral-contract?startDate=" + f'{startDate}' + "&endDate=" + f'{endDate}' + "&eic=" + f'{eic}' else : 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_bid = [ ] quantity_ask = [ ] for item in response_list : date_list . append ( item [ 'date' ] ) quantity_bid . append ( item [ 'quantityBid' ] ) quantity_ask . append ( item [ 'quantityBidAsk' ] ) return date_list , quantity_bid , quantity_ask
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.
            -Bid Quantity values for the range of specified dates as second item.
            -Ask Quantity values for the range of specified dates as third item.

        Parameters:

        eic (Optional): A code for the specific company e.g: "40X000000009447G".
        startDate: Start date in YYYY-MM-DD format.
        endDate: End date in YYYY-MM-DD format.

        '''
self
startDate
endDate
eic