def __init__(self): BfTraderClient.__init__(self) self.clientId = "DataRecorder" self.tickHandler = True self.tradeHandler = False self.logHandler = False self.symbol = "*" self.exchange = "*"
def __init__(self): print "init dualcross" BfTraderClient.__init__(self) self.clientId = "Save 1min bar" self.tickHandler = True self.tradeHandler = False self.logHandler = False self.symbol = "rb1610" self.exchange = "SHFE"