Пример #1
0
 def testDecimal(self):
     self.assertEqual("AA131101C00009500",
                      makeOptionSymbol("AA",
                                       datetime.date(2013,11,01),
                                       "call",
                                       9.50
                                       )
                      )
Пример #2
0
 def testAAPL(self):
     self.assertEqual("AAPL131101P00470000", 
                      makeOptionSymbol("AAPL",
                                       datetime.date(2013,11,01),
                                       "put",
                                       470
                                       )
                      )
Пример #3
0
 def testMini(self):
     self.assertEqual("AAPL7131101P00470000", 
                      makeOptionSymbol("AAPL",
                                       datetime.date(2013,11,01),
                                       "put",
                                       470,
                                       mini=True
                                       )
                      )