transparency_epias/gas/gasTraClients.py
def price_daily(self, startDate, endDate):

        '''
        This function returns 7 lists including;
            -Gas day informatin as first item.
            -Contract name information as second item.
            -Intraday price values as third item.
            -Day after price values as fourth item.
            -Dayahead price values as fifth item.
            -Weighted Average price values as sixth item.
            -Gas reference price values as seventh item.

        Parameters:

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

        '''

        val.date_check(startDate, endDate)

        query = "stp/daily-price?"+"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}']

        day_list = []
        contract_list = []
        intraday_list = []
        dayAfter_list = []
        dayahead_list = []
        wavg_list = []
        gas_ref_price = []

        for item in response_list:
            day_list.append(item['gasDay'])
            contract_list.append(item['contractName'])
            intraday_list.append(item['intraDayPrice'])
            dayAfter_list.append(item['dayAfterPrice'])
            dayahead_list.append(item['dayAheadPrice'])
            wavg_list.append(item['weightedAverage'])
            gas_ref_price.append(item['gasReferencePrice'])

        return day_list, contract_list, intraday_list, dayAfter_list, dayahead_list, wavg_list, gas_ref_price

        This function returns 7 lists including;
            -Gas day informatin as first item.
            -Contract name information as second item.
            -Intraday price values as third item.
            -Day after price values as fourth item.
            -Dayahead price values as fifth item.
            -Weighted Average price values as sixth item.
            -Gas reference price values as seventh item.

        Parameters:

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

        
This function returns 7 lists including;
Gas day informatin as first item.
Contract name information as second item.
Intraday price values as third item.
Day after price values as fourth item.
Dayahead price values as fifth item.
Weighted Average price values as sixth item.
Gas reference price values as seventh item.



Start date in YYYY-MM-DD format.
endDate: End date in YYYY-MM-DD format.
This function returns 7 lists including ; Gas day informatin as first item . Contract name information as second item . Intraday price values as third item . Day after price values as fourth item . Dayahead price values as fifth item . Weighted Average price values as sixth item . Gas reference price values as seventh item . Start date in YYYY - MM - DD format . endDate : End date in YYYY - MM - DD format .
def price_daily(self, startDate, endDate):
        val.date_check(startDate, endDate)
        query = "stp/daily-price?"+"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}']
        day_list = []
        contract_list = []
        intraday_list = []
        dayAfter_list = []
        dayahead_list = []
        wavg_list = []
        gas_ref_price = []
        for item in response_list:
            day_list.append(item['gasDay'])
            contract_list.append(item['contractName'])
            intraday_list.append(item['intraDayPrice'])
            dayAfter_list.append(item['dayAfterPrice'])
            dayahead_list.append(item['dayAheadPrice'])
            wavg_list.append(item['weightedAverage'])
            gas_ref_price.append(item['gasReferencePrice'])
        return day_list, contract_list, intraday_list, dayAfter_list, dayahead_list, wavg_list, gas_ref_price
def price_daily ( self , startDate , endDate ) : val . date_check ( startDate , endDate ) query = "stp/daily-price?" + "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}' ] day_list = [ ] contract_list = [ ] intraday_list = [ ] dayAfter_list = [ ] dayahead_list = [ ] wavg_list = [ ] gas_ref_price = [ ] for item in response_list : day_list . append ( item [ 'gasDay' ] ) contract_list . append ( item [ 'contractName' ] ) intraday_list . append ( item [ 'intraDayPrice' ] ) dayAfter_list . append ( item [ 'dayAfterPrice' ] ) dayahead_list . append ( item [ 'dayAheadPrice' ] ) wavg_list . append ( item [ 'weightedAverage' ] ) gas_ref_price . append ( item [ 'gasReferencePrice' ] ) return day_list , contract_list , intraday_list , dayAfter_list , dayahead_list , wavg_list , gas_ref_price
This function returns 7 lists including;
Gas day informatin as first item.
This function returns 7 lists including ; Gas day informatin as first item .
'''
        This function returns 7 lists including;
            -Gas day informatin as first item.
            -Contract name information as second item.
            -Intraday price values as third item.
            -Day after price values as fourth item.
            -Dayahead price values as fifth item.
            -Weighted Average price values as sixth item.
            -Gas reference price values as seventh item.

        Parameters:

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

        '''
self
startDate
endDate