transparency_epias/markets/intradayClient.py
def hourly_quantities(self, startDate, endDate):

        '''
        This function returns 3 lists including;
            -Effective date information as first item.
            -Hourly sell quantities as second item. 
            -Hourly buy quantities as third item.


        Parameters:

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

        Warning! For block offer values look for block_offer_prices
    
        '''
        val.date_check(startDate, endDate)

        query = "market/intra-day-min-max-price?startDate="+f'{startDate}'+"&endDate="+f'{endDate}'

        json_result = self.get_request_result(query)

        response_list = json_result['body']

        key_list = list(json_result['body'].keys())

        key_name = key_list[0]

        response_list = json_result['body'][f'{key_name}']

        date_list = []
        sell_quantity = []
        buy_quantity = []

        for item in response_list:
            date_list.append(item['effectiveDate'])
            sell_quantity.append(item['blockPurchaseQuantity'])
            buy_quantity.append(item['blockSaleQuantity'])

        return date_list, sell_quantity, buy_quantity

        This function returns 3 lists including;
            -Effective date information as first item.
            -Hourly sell quantities as second item. 
            -Hourly buy quantities as third item.


        Parameters:

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

        Warning! For block offer values look for block_offer_prices
    
        
This function returns 3 lists including;
Effective date information as first item.
Hourly sell quantities as second item.
Hourly buy quantities as third item.



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

Warning. For block offer values look for block_offer_prices
This function returns 3 lists including ; Effective date information as first item . Hourly sell quantities as second item . Hourly buy quantities as third item . Start date in YYYY - MM - DD format . endDate : End date in YYYY - MM - DD format . Warning . For block offer values look for block_offer_prices
def hourly_quantities(self, startDate, endDate):
        val.date_check(startDate, endDate)
        query = "market/intra-day-min-max-price?startDate="+f'{startDate}'+"&endDate="+f'{endDate}'
        json_result = self.get_request_result(query)
        response_list = json_result['body']
        key_list = list(json_result['body'].keys())
        key_name = key_list[0]
        response_list = json_result['body'][f'{key_name}']
        date_list = []
        sell_quantity = []
        buy_quantity = []
        for item in response_list:
            date_list.append(item['effectiveDate'])
            sell_quantity.append(item['blockPurchaseQuantity'])
            buy_quantity.append(item['blockSaleQuantity'])
        return date_list, sell_quantity, buy_quantity
def hourly_quantities ( self , startDate , endDate ) : val . date_check ( startDate , endDate ) query = "market/intra-day-min-max-price?startDate=" + f'{startDate}' + "&endDate=" + f'{endDate}' json_result = self . get_request_result ( query ) response_list = json_result [ 'body' ] key_list = list ( json_result [ 'body' ] . keys ( ) ) key_name = key_list [ 0 ] response_list = json_result [ 'body' ] [ f'{key_name}' ] date_list = [ ] sell_quantity = [ ] buy_quantity = [ ] for item in response_list : date_list . append ( item [ 'effectiveDate' ] ) sell_quantity . append ( item [ 'blockPurchaseQuantity' ] ) buy_quantity . append ( item [ 'blockSaleQuantity' ] ) return date_list , sell_quantity , buy_quantity
This function returns 3 lists including;
Effective date information as first item.
This function returns 3 lists including ; Effective date information as first item .
'''
        This function returns 3 lists including;
            -Effective date information as first item.
            -Hourly sell quantities as second item. 
            -Hourly buy quantities as third item.


        Parameters:

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

        Warning! For block offer values look for block_offer_prices
    
        '''
self
startDate
endDate