pybit/py3/common.py
def api_check(self, jr: dict, validationFields: dict) -> bool:
        """
        Check API json on specified validation fields. Retruns true if all
        tests pass, otherwise False.
        """

        # If reponse wasn't valid, don't run checks
        if jr is None:
            return None

        # Iterate over and compare fields
        result = True
        for k, v in validationFields.items():
            test = k == v
            if self.verb > 5:
                print("{0}{1} | {2}: {3}".format(" "*self.verb,
                                                 v,
                                                 k,
                                                 test))
            # Keep track of overall result
            result &= test

        return result

        Check API json on specified validation fields. Retruns true if all
        tests pass, otherwise False.
        
Check API json on specified validation fields. Retruns true if all
tests pass, otherwise False.
Check API json on specified validation fields . Retruns true if all tests pass otherwise False .
def api_check(self, jr: dict, validationFields: dict) -> bool:
        if jr is None:
            return None
        result = True
        for k, v in validationFields.items():
            test = k == v
            if self.verb > 5:
                print("{0}{1} | {2}: {3}".format(" "*self.verb,
                                                 v,
                                                 k,
                                                 test))
            result &= test
        return result
def api_check ( self , jr : dict , validationFields : dict ) -> bool : if jr is None : return None result = True for k , v in validationFields . items ( ) : test = k == v if self . verb > 5 : print ( "{0}{1} | {2}: {3}" . format ( " " * self . verb , v , k , test ) ) result &= test return result
Check API json on specified validation fields.
Check API json on specified validation fields .
"""
        Check API json on specified validation fields. Retruns true if all
        tests pass, otherwise False.
        """ # If reponse wasn't valid, don't run checks # Iterate over and compare fields # Keep track of overall result
self
jr
dict
validationFields
dict