def main(): # Replace these with your values from bleutrade.com key = "YOUR_API_KEY" secret = "YOUR_API_SECRET" # Lets take this baby for a spin! bleubot = bleuBot.bleuBot(key, secret)
def main(): # Replace these with your values from bleutrade.com key = "YOUR_API_KEY" secret = "YOUR_API_SECRET" # Lets take this baby for a spin! bleubot = bleuBot.bleuBot(key, secret)
def __init__(self, daemons, credentials): self.daemons=daemons self.out={} self.api={} for i, exch in enumerate(credentials): if (exch=="cryptsy"): self.api[exch]=PyCryptsy(str(credentials[exch]["pubkey"]), str(credentials[exch]["privkey"])) elif (exch=="bittrex"): self.api[exch]=Bittrex.Bittrex(str(credentials[exch]["pubkey"]), str(credentials[exch]["privkey"])) elif (exch=="c-cex"): self.api[exch]=PyCCEX(str(credentials[exch]["key"])) elif (exch=="cryptopia"): self.api[exch]=PyCryptopia() elif (exch=="poloniex"): self.api[exch]=poloniex(str(credentials[exch]["key"]), str(credentials[exch]["secret"])) elif (exch=="bleutrade"): self.api[exch]=bleuBot(str(credentials[exch]["key"]), str(credentials[exch]["secret"])) else: raise ValueError("unknown exchange")
def __init__(self, daemons, credentials): self.daemons = daemons self.out = {} self.api = {} for i, exch in enumerate(credentials): if (exch == "cryptsy"): self.api[exch] = PyCryptsy(str(credentials[exch]["pubkey"]), str(credentials[exch]["privkey"])) elif (exch == "bittrex"): self.api[exch] = Bittrex.Bittrex( str(credentials[exch]["pubkey"]), str(credentials[exch]["privkey"])) elif (exch == "c-cex"): self.api[exch] = PyCCEX(str(credentials[exch]["key"])) elif (exch == "cryptopia"): self.api[exch] = PyCryptopia() elif (exch == "poloniex"): self.api[exch] = poloniex(str(credentials[exch]["key"]), str(credentials[exch]["secret"])) elif (exch == "bleutrade"): self.api[exch] = bleuBot(str(credentials[exch]["key"]), str(credentials[exch]["secret"])) else: raise ValueError("unknown exchange")
##################################### # EXC CRIPTO emailEXC = config.emailEXC keyEXC = config.keyEXC secretEXC = config.secretEXC key_secretEXC = excBot.excBot(keyEXC, secretEXC, nonce=True) ##################################### # BLEUTRADE emailBLEU = config.emailBLEU keyBLEU = config.keyBLEU secretBLEU = config.secretBLEU key_secretBLEU = bleuBot.bleuBot(keyBLEU, secretBLEU, nonce=True) ##################################### # SALDO INICIAL EM LTC saldoInicial_EXC = config.saldoInicial_EXC saldoInicial_BLEU = config.saldoInicial_BLEU ##################################### # VALOR ORDEM MÍNIMA minimaCompra_LTC_USDT = config.minimaCompra_LTC_USDT ##################################### # print('\nMERCADO EXC: LTC_USDT') urlGettickerEXC = config.urlGettickerEXC_LTC_USDT requisicaoEXC = requests.get(urlGettickerEXC) dicionarioEXC = json.loads(requisicaoEXC.text) lastAtivoEXC = float(dicionarioEXC['result'][0]['Last'])