Пример #1
0
 def testReadTicks(self):
     dam = GoogleDAM()
     dam.setSymbol('EBAY')
     data = dam.readTicks('20111120', '20111201')
     self.assertNotEqual(0, len(data))
Пример #2
0
 def testReadFundamental(self):
     dam = GoogleDAM()
     dam.setSymbol('EBAY')
     keyTimeValueDict = dam.readFundamental()
     self.assertNotEqual(0, len(keyTimeValueDict))
Пример #3
0
 def testReadQuotes(self):
     dam = GoogleDAM()
     dam.setSymbol('NASDAQ:EBAY')
     data = dam.readQuotes('20110101', '20110110')
     self.assertNotEqual(0, len(data))
Пример #4
0
 def testReadFundamental(self):
     dam = GoogleDAM()
     dam.setSymbol('EBAY')
     keyTimeValueDict = dam.readFundamental()
     print(keyTimeValueDict)
     self.assertNotEqual(0, len(keyTimeValueDict))
Пример #5
0
 def testReadTicks(self):
     dam = GoogleDAM()
     dam.setSymbol('EBAY')
     data = dam.readTicks('20111120', '20111201')
     print(data)
     self.assertNotEqual(0, len(data))
Пример #6
0
 def testReadQuotes(self):
     dam = GoogleDAM()
     dam.setSymbol('NASDAQ:EBAY')
     data = dam.readQuotes('20110101', '20110110')
     print(data)
     self.assertNotEqual(0, len(data))
Пример #7
0
 def testReadQuotes(self):
     dam = GoogleDAM()
     dam.setSymbol('NASDAQ:EBAY')
     data = dam.readQuotes('20131101', '20131110')
     print([str(q) for q in data])
     self.assertNotEqual(0, len(data))