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

        '''
        This function returns a dictionary including;
            -negativeImbalance
            -negativeImbalanceTradeValue
            -period
            -positiveImbalance
            -positiveImbalanceTradeValue
            -type

        Parameters:

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

        '''

        val.date_check(startDate, endDate)

        query = "stp/imbalance-monthly?"+"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;
            -negativeImbalance
            -negativeImbalanceTradeValue
            -period
            -positiveImbalance
            -positiveImbalanceTradeValue
            -type

        Parameters:

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

        
This function returns a dictionary including;
negativeImbalance
negativeImbalanceTradeValue
period
positiveImbalance
positiveImbalanceTradeValue
type



Start date in YYYY-MM-DD format.
endDate: End date in YYYY-MM-DD format.
This function returns a dictionary including ; negativeImbalance negativeImbalanceTradeValue period positiveImbalance positiveImbalanceTradeValue type Start date in YYYY - MM - DD format . endDate : End date in YYYY - MM - DD format .
def imbalance_montly(self, startDate, endDate):
        val.date_check(startDate, endDate)
        query = "stp/imbalance-monthly?"+"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 imbalance_montly ( self , startDate , endDate ) : val . date_check ( startDate , endDate ) query = "stp/imbalance-monthly?" + "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;
negativeImbalance
negativeImbalanceTradeValue
period
positiveImbalance
positiveImbalanceTradeValue
type
This function returns a dictionary including ; negativeImbalance negativeImbalanceTradeValue period positiveImbalance positiveImbalanceTradeValue type
'''
        This function returns a dictionary including;
            -negativeImbalance
            -negativeImbalanceTradeValue
            -period
            -positiveImbalance
            -positiveImbalanceTradeValue
            -type

        Parameters:

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

        '''
self
startDate
endDate