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

        '''
        This function returns 5 lists including;
            -Balancing gas purchase amount as first item.
            -Balancing gas sale amount as second item.
            -Gas reference price values as third item.
            -Gas day information as fourth item.
            -Imbalance amount as sixth 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/mobile/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}']

        b_purch_list = []
        b_sale_list = []
        gas_refp_list = []
        day_list = []
        imb_list = []

        for item in response_list:
            b_purch_list.append(item['balancingGasPurchase'])
            day_list.append(item['gasDay'])
            b_sale_list.append(item['balancingGasPurchase'])
            gas_refp_list.append(item['otherQuantity'])
            imb_list.append(item['imbalance'])

        return b_purch_list, b_sale_list, gas_refp_list, day_list, imb_list

        This function returns 5 lists including;
            -Balancing gas purchase amount as first item.
            -Balancing gas sale amount as second item.
            -Gas reference price values as third item.
            -Gas day information as fourth item.
            -Imbalance amount as sixth item.

        Parameters:

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

        
This function returns 5 lists including;
Balancing gas purchase amount as first item.
Balancing gas sale amount as second item.
Gas reference price values as third item.
Gas day information as fourth item.
Imbalance amount as sixth item.



Start date in YYYY-MM-DD format.
endDate: End date in YYYY-MM-DD format.
This function returns 5 lists including ; Balancing gas purchase amount as first item . Balancing gas sale amount as second item . Gas reference price values as third item . Gas day information as fourth item . Imbalance amount as sixth item . Start date in YYYY - MM - DD format . endDate : End date in YYYY - MM - DD format .
def price_mobile(self, startDate, endDate):
        val.date_check(startDate, endDate)
        query = "stp/mobile/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}']
        b_purch_list = []
        b_sale_list = []
        gas_refp_list = []
        day_list = []
        imb_list = []
        for item in response_list:
            b_purch_list.append(item['balancingGasPurchase'])
            day_list.append(item['gasDay'])
            b_sale_list.append(item['balancingGasPurchase'])
            gas_refp_list.append(item['otherQuantity'])
            imb_list.append(item['imbalance'])
        return b_purch_list, b_sale_list, gas_refp_list, day_list, imb_list
def price_mobile ( self , startDate , endDate ) : val . date_check ( startDate , endDate ) query = "stp/mobile/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}' ] b_purch_list = [ ] b_sale_list = [ ] gas_refp_list = [ ] day_list = [ ] imb_list = [ ] for item in response_list : b_purch_list . append ( item [ 'balancingGasPurchase' ] ) day_list . append ( item [ 'gasDay' ] ) b_sale_list . append ( item [ 'balancingGasPurchase' ] ) gas_refp_list . append ( item [ 'otherQuantity' ] ) imb_list . append ( item [ 'imbalance' ] ) return b_purch_list , b_sale_list , gas_refp_list , day_list , imb_list
This function returns 5 lists including;
Balancing gas purchase amount as first item.
This function returns 5 lists including ; Balancing gas purchase amount as first item .
'''
        This function returns 5 lists including;
            -Balancing gas purchase amount as first item.
            -Balancing gas sale amount as second item.
            -Gas reference price values as third item.
            -Gas day information as fourth item.
            -Imbalance amount as sixth item.

        Parameters:

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

        '''
self
startDate
endDate