예제 #1
0
 def test_fund(self):
     print
     dr = get_fund_retriever()
     self.assertIsNotNone(dr)
     self.assertAlmostEqual(
         dr.get_value("06041290000106", "2015-01-23"),
         5.6174202
     )
     self.assertAlmostEqual(
         dr.get_value("06041290000106", "2014-12-31"),
         5.610184
     )
예제 #2
0
 def __init__(self, name):
     FundShare.__init__(self, name)
     self.retriever = retriever.get_fund_retriever()
     self.category = MainCategories.Stocks
예제 #3
0
 def __init__(self, name, subcat):
     assert StocksCategories[subcat] is not None, "Subcategory: %s" % subcat
     FundShare.__init__(self, name)
     self.retriever = retriever.get_fund_retriever()
     self.category = MainCategories.Stocks
     self.subcategory = StocksCategories[subcat]
예제 #4
0
 def __init__(self, name, subcat):
     assert StocksCategories[subcat] is not None, "Subcategory: %s" % subcat
     FundShare.__init__(self, name)
     self.retriever = retriever.get_fund_retriever()
     self.category = MainCategories.Stocks
     self.subcategory = StocksCategories[subcat]
예제 #5
0
 def __init__(self, name):
     FundShare.__init__(self, name)
     self.retriever = retriever.get_fund_retriever()
     self.category = MainCategories.Other