Example #1
0
 def __init__(self):
     self.mtgox = mtgox.PrivateMtGox()
     self.btcentral = paymium.PrivatePaymium()
     self.clients = {
         "MtGoxEUR": self.mtgox,
         "PaymiumEUR": self.btcentral,
     }
     self.profit_percentage_thresholds = {  # Graph
         "MtGoxEUR": {"PaymiumEUR": 3.5},
         "PaymiumEUR": {"MtGoxEUR": 1},
     }
     self.trade_wait = 60 * 5  # in seconds
     self.last_trade = 0
     self.potential_trades = []
Example #2
0
 def __init__(self):
     self.mtgox = mtgox.PrivateMtGox()
     self.btcentral = bitcoincentral.PrivateBitcoinCentral()
     self.clients = {
         "MtGoxEUR": self.mtgox,
         "MtGoxUSD": self.mtgox,
         "BitcoinCentralEUR": self.btcentral,
         "BitcoinCentralUSD": self.btcentral
     }
     self.profit_thresh = 5  # in EUR
     self.perc_thresh = 2  # in %
     self.trade_wait = 120  # in seconds
     self.last_trade = 0
     self.potential_trades = []