def setUpClass(cls): cls.api = NovaClient(ACCESS_KEY, SECRET_KEY, endpoint=REST_ENDPOINT)
def Key(access_key='', secret_key=''): nova_client = NovaClient(access_key, secret_key)
from novadax import RequestClient as NovaClient # Funções de acesso a a api da NovaDax. de uma forma simplificada. # É só chamar pelo comando import nova_client = NovaClient('access_key', 'secret_key') #Configurando a key de acesso API def Key(access_key='', secret_key=''): nova_client = NovaClient(access_key, secret_key) # Dados de um símbolo (par) específico def Simbolo(simbolo): return nova_client.get_symbol(simbolo) # Todos os símbolos (pares) def Simbolos(): return nova_client.list_symbols() # Hora atual do sistema def HoraAtual(): return nova_client.get_timestamp() # Obter dados de ticker de todos os pares de negociação def Tickers(): return nova_client.list_tickers()
def setUpClass(self): self.api = NovaClient(ACCESS_KEY, SECRET_KEY, url=API_URL) self.symbols_config = {} for symbol_config in self.api.list_symbols()['data']: self.symbols_config[symbol_config['symbol']] = symbol_config
def setUpClass(self): self.api = NovaClient(ACCESS_KEY, SECRET_KEY, url=API_URL)
def setUpClass(cls): cls.api = NovaClient(ACCESS_KEY, SECRET_KEY, endpoint=REST_ENDPOINT) cls.symbols_config = {} for symbol_config in cls.api.list_symbols()['data']: cls.symbols_config[symbol_config['symbol']] = symbol_config