diff --git a/vnpy/trader/rqdata.py b/vnpy/trader/rqdata.py index 87515e59..630a82f6 100644 --- a/vnpy/trader/rqdata.py +++ b/vnpy/trader/rqdata.py @@ -36,11 +36,15 @@ class RqdataClient: self.inited = False self.symbols = set() - def init(self): + def init(self, username="", password=""): """""" if self.inited: return True + if username and password: + self.username = username + self.password = password + if not self.username or not self.password: return False