def execute_results(self,destinationdirectorylocal,sourcefilelocalsymbols,sourcefilelocalexpirationdates,showresults):
     import readintodictionarysinglecolumlistfromfilelocal
     import pullprices
     #destinationdirectorylocal=destinationdirectorylocal #"C:\\Documents and Settings\\jmalinchak\\My Documents\\My Python\\Active\\downloads\\20141205\\16"
     #destinationdirectorylocal='C:\\Batches\\AutomationProjects\\My Python\\downloads\\20141204end1'
     symbols=readintodictionarysinglecolumlistfromfilelocal.Dictionary(sourcefilelocalsymbols)
     #symbols=readintodictionarysinglecolumlistfromfilelocal.Dictionary('C:\\Batches\\AutomationProjects\\My Python\\inputs\\Symbols.txt')
     print(str(len(symbols)) + " symbols found.")
     expirations=readintodictionarysinglecolumlistfromfilelocal.Dictionary(sourcefilelocalexpirationdates)
     print(str(len(expirations)) + " expirations found.")
     for SymbolKey,SymbolValue in symbols.items():
         #print(pullprices.stock(SymbolValue))
         #expirations=readintodictionarysinglecolumlistfromfilelocal.Dictionary('C:\\Batches\AutomationProjects\\My Python\\inputs\\Expirations.txt')
         for ExpirationKey,ExpirationValue in expirations.items():
             pullprices.options(SymbolValue,ExpirationValue,destinationdirectorylocal,0)        
             print('completed pull...', SymbolValue, ExpirationValue)
Example #2
0
 def execute_results(self, destinationdirectorylocal,
                     sourcefilelocalsymbols, sourcefilelocalexpirationdates,
                     showresults):
     import readintodictionarysinglecolumlistfromfilelocal
     import pullprices
     #destinationdirectorylocal=destinationdirectorylocal #"C:\\Documents and Settings\\jmalinchak\\My Documents\\My Python\\Active\\downloads\\20141205\\16"
     #destinationdirectorylocal='C:\\Batches\\AutomationProjects\\My Python\\downloads\\20141204end1'
     symbols = readintodictionarysinglecolumlistfromfilelocal.Dictionary(
         sourcefilelocalsymbols)
     #symbols=readintodictionarysinglecolumlistfromfilelocal.Dictionary('C:\\Batches\\AutomationProjects\\My Python\\inputs\\Symbols.txt')
     print(str(len(symbols)) + " symbols found.")
     expirations = readintodictionarysinglecolumlistfromfilelocal.Dictionary(
         sourcefilelocalexpirationdates)
     print(str(len(expirations)) + " expirations found.")
     for SymbolKey, SymbolValue in symbols.items():
         #print(pullprices.stock(SymbolValue))
         #expirations=readintodictionarysinglecolumlistfromfilelocal.Dictionary('C:\\Batches\AutomationProjects\\My Python\\inputs\\Expirations.txt')
         for ExpirationKey, ExpirationValue in expirations.items():
             pullprices.options(SymbolValue, ExpirationValue,
                                destinationdirectorylocal, 0)
             print('completed pull...', SymbolValue, ExpirationValue)
Example #3
0
import readintodictionarysinglecolumlistfromfilelocal
import pullprices
pathtoexportto="C:\\Documents and Settings\\jmalinchak\\My Documents\\My Python\\Active\\downloads\\20141204\\1600test"
#pathtoexportto='C:\\Batches\\AutomationProjects\\My Python\\downloads\\20141204end1'
symbols=readintodictionarysinglecolumlistfromfilelocal.Dictionary('C:\\Documents and Settings\\jmalinchak\\My Documents\\My Python\\Active\\inputs\\SymbolsShort.txt')
#symbols=readintodictionarysinglecolumlistfromfilelocal.Dictionary('C:\\Batches\\AutomationProjects\\My Python\\inputs\\Symbols.txt')

for SymbolKey,SymbolValue in symbols.items():
    print(pullprices.stock(SymbolValue))
    expirations=readintodictionarysinglecolumlistfromfilelocal.Dictionary('C:\\Documents and Settings\\jmalinchak\\My Documents\\My Python\\Active\\inputs\\ExpirationsShort.txt')
    #expirations=readintodictionarysinglecolumlistfromfilelocal.Dictionary('C:\\Batches\AutomationProjects\\My Python\\inputs\\Expirations.txt')
    for ExpirationKey,ExpirationValue in expirations.items():
        pullprices.options(SymbolValue,ExpirationValue,pathtoexportto)        
        print('completed...', SymbolValue, ExpirationValue)

Example #4
0
import readintodictionarysinglecolumlistfromfilelocal
import pullprices
pathtoexportto="C:\\Documents and Settings\\jmalinchak\\My Documents\\My Python\\Active\\downloads\\20141204\\1600"
#pathtoexportto='C:\\Batches\\AutomationProjects\\My Python\\downloads\\20141204end1'
symbols=readintodictionarysinglecolumlistfromfilelocal.Dictionary('C:\\Documents and Settings\\jmalinchak\\My Documents\\My Python\\Active\\inputs\\Symbols.txt')
#symbols=readintodictionarysinglecolumlistfromfilelocal.Dictionary('C:\\Batches\\AutomationProjects\\My Python\\inputs\\Symbols.txt')

for SymbolKey,SymbolValue in symbols.items():
    print(pullprices.stock(SymbolValue))
    expirations=readintodictionarysinglecolumlistfromfilelocal.Dictionary('C:\\Documents and Settings\\jmalinchak\\My Documents\\My Python\\Active\\inputs\\Expirations.txt')
    #expirations=readintodictionarysinglecolumlistfromfilelocal.Dictionary('C:\\Batches\AutomationProjects\\My Python\\inputs\\Expirations.txt')
    for ExpirationKey,ExpirationValue in expirations.items():
        pullprices.options(SymbolValue,ExpirationValue,pathtoexportto)
        
        print('completed...', SymbolValue, ExpirationValue)