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

            '''
            This function returns a dictionary including;
                -additionalBalancingPurchase
                -additionalBalancingSale
                -balancingGasPurchase
                -balancingGasSale
                -finalAbp
                -finalAbs
                -finalBgp
                -finalBgs
                -gasDay


            Parameters:

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

            '''

            val.date_check(startDate, endDate)

            query = "stp/balancing-gas-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}']

            return response_list

            This function returns a dictionary including;
                -additionalBalancingPurchase
                -additionalBalancingSale
                -balancingGasPurchase
                -balancingGasSale
                -finalAbp
                -finalAbs
                -finalBgp
                -finalBgs
                -gasDay


            Parameters:

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

            
This function returns a dictionary including;
additionalBalancingPurchase
additionalBalancingSale
balancingGasPurchase
balancingGasSale
finalAbp
finalAbs
finalBgp
finalBgs
gasDay



Start date in YYYY-MM-DD format.
endDate: End date in YYYY-MM-DD format.
This function returns a dictionary including ; additionalBalancingPurchase additionalBalancingSale balancingGasPurchase balancingGasSale finalAbp finalAbs finalBgp finalBgs gasDay Start date in YYYY - MM - DD format . endDate : End date in YYYY - MM - DD format .
def balancing_gas_price(self, startDate, endDate):
            val.date_check(startDate, endDate)
            query = "stp/balancing-gas-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}']
            return response_list
def balancing_gas_price ( self , startDate , endDate ) : val . date_check ( startDate , endDate ) query = "stp/balancing-gas-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}' ] return response_list
This function returns a dictionary including;
additionalBalancingPurchase
additionalBalancingSale
balancingGasPurchase
balancingGasSale
finalAbp
finalAbs
finalBgp
finalBgs
gasDay
This function returns a dictionary including ; additionalBalancingPurchase additionalBalancingSale balancingGasPurchase balancingGasSale finalAbp finalAbs finalBgp finalBgs gasDay
'''
            This function returns a dictionary including;
                -additionalBalancingPurchase
                -additionalBalancingSale
                -balancingGasPurchase
                -balancingGasSale
                -finalAbp
                -finalAbs
                -finalBgp
                -finalBgs
                -gasDay


            Parameters:

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

            '''
self
startDate
endDate