def deallocate(self, path_id: str):
    if (path_id in self.locked.keys()):
        quantity = self.locked.pop(path_id, None)
        if (quantity is not None):
            self += (quantity.size * self.instrument)
def deallocate(self, path_id: str):
    if (path_id in self.locked.keys()):
        quantity = self.locked.pop(path_id, None)
        if (quantity is not None):
            self += (quantity.size * self.instrument)