예제 #1
0
 def __init__(self, configInstance):
     self.config = configInstance
     self.initSignals()
     self.plot = Plot(
         self.signalType,
         self.config.pair,
         self.config.graphDPI)
     self.log = helper.Log()
예제 #2
0
 def __init__(self):
     self.log = helper.Log()
     self.config = helper.Config()
     self.tick = api.publicapi()
     self.keyCheck()
     self.tapi = api.tradeapi(self.config.apikey,self.config.apisecret)
     self.signals = signals(self.config)
     self.tradeData = self.tapi.update()
     self.tickerData = self.tick.update(self.config.pairs)
     self.standingOrders = {}
     self.last = self.tick.getLast(self.config.pair)
     self.lastID = self.tick.getLastID(self.config.pair)
     self.shortPosition = None
     self.longOn = self.config.longOn