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

        '''
        This function returns 3 different which includes;
            -Datetime values for the range of specified dates as firts item.
            -Bid trade volume values for the range of specified dates as second item.
            -Ask trade volume 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.

        Warning! Bid and ask trade volumes are MATCHED dayahead trade volumes. For ask and bid OFFERS look for dayahead_market_volume.

        '''

        val.date_check(startDate, endDate)

        query = "market/day-ahead-market-trade-volume?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 = []
        bid_volume_list = []
        ask_volume_list = []

        for item in response_list:
            date_list.append(item['date'])
            bid_volume_list.append(item['volumeOfBid'])
            ask_volume_list.append(item['volumeOfAsk'])

        return date_list, bid_volume_list, ask_volume_list

        This function returns 3 different which includes;
            -Datetime values for the range of specified dates as firts item.
            -Bid trade volume values for the range of specified dates as second item.
            -Ask trade volume 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.

        Warning! Bid and ask trade volumes are MATCHED dayahead trade volumes. For ask and bid OFFERS look for dayahead_market_volume.

        
This function returns 3 different which includes;
Datetime values for the range of specified dates as firts item.
Bid trade volume values for the range of specified dates as second item.
Ask trade volume 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.

Warning. Bid and ask trade volumes are MATCHED dayahead trade volumes. For ask and bid OFFERS look for dayahead_market_volume.
This function returns 3 different which includes ; Datetime values for the range of specified dates as firts item . Bid trade volume values for the range of specified dates as second item . Ask trade volume 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 . Warning . Bid and ask trade volumes are MATCHED dayahead trade volumes . For ask and bid OFFERS look for dayahead_market_volume .
def dayahead_trade_volume(self, startDate, endDate):
        val.date_check(startDate, endDate)
        query = "market/day-ahead-market-trade-volume?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 = []
        bid_volume_list = []
        ask_volume_list = []
        for item in response_list:
            date_list.append(item['date'])
            bid_volume_list.append(item['volumeOfBid'])
            ask_volume_list.append(item['volumeOfAsk'])
        return date_list, bid_volume_list, ask_volume_list
def dayahead_trade_volume ( self , startDate , endDate ) : val . date_check ( startDate , endDate ) query = "market/day-ahead-market-trade-volume?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 = [ ] bid_volume_list = [ ] ask_volume_list = [ ] for item in response_list : date_list . append ( item [ 'date' ] ) bid_volume_list . append ( item [ 'volumeOfBid' ] ) ask_volume_list . append ( item [ 'volumeOfAsk' ] ) return date_list , bid_volume_list , ask_volume_list
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 trade volume values for the range of specified dates as second item.
            -Ask trade volume 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.

        Warning! Bid and ask trade volumes are MATCHED dayahead trade volumes. For ask and bid OFFERS look for dayahead_market_volume.

        '''
self
startDate
endDate