コード例 #1
0
 def testActiveCredits(self):
     bfep = BitfinexExchangePlugin(self.config)
     bfep.apiKey = self.apiKey
     bfep.apiSecret = self.apiSecret
     bfep.getActiveCredits = MagicMock(return_value=[])
     credit = bfep.getActiveCredits()
     self.assertEqual([], credit)
コード例 #2
0
 def testWalletBalances(self):
     bfep = BitfinexExchangePlugin(self.config)
     bfep.apiKey = self.apiKey
     bfep.apiSecret = self.apiSecret
     balances = bfep.getWalletBalances()
     print balances
     self.assertEquals(1, balances[0]['period'])      
コード例 #3
0
 def testGetActiveOrders(self):
     bfep = BitfinexExchangePlugin(self.config)
     bfep.apiKey = self.apiKey
     bfep.apiSecret = self.apiSecret
     ticker = bfep.getActiveOrders()
     print ticker
     self.assertEquals(1, ticker[0]['period'])