Exemple #1
0
 def test_getOrders_NotEstablished(self):
     gwy = BinanceGwy()
     with self.assertRaises(InvalidSessionError) as cm:
         ords = gwy.getOrders('accountId_example')
     self.assertEqual(cm.exception.msg, 'Session not established')
Exemple #2
0
 def test_getOrders(self):
     gwy = BinanceGwy()
     gwy.establishSession()
     ords = gwy.getOrders('accountId_example')
     self.assertEqual(len(ords), 0)