Did I find the right examples for you? yes no

All Samples(53)  |  Call(3)  |  Derive(0)  |  Import(50)

src/p/y/python-stocks-HEAD/StockDAO.py   python-stocks(Download)
import datetime
import time
import csv
import Stock
 
 
        for ticker in tickers:
            self.data[ ticker ] = Stock( ticker, price = price )
    def getPrice( self,ticker, date ):
        if( not data.has_key( ticker ) ):
            self.data[ ticker ] = Stock( ticker, price = price );
    def getPreviousPrice( self, ticker, date ):
        if( not data.has_key( ticker ) ):
            self.data[ ticker ] = Stock( ticker, price = price );
            self.data[ ticker ].initData()
        self.data[ ticker ].getPreviousPrice( ticker, date )      

src/p/y/python-stocks-HEAD/TitTatStrategy.py   python-stocks(Download)
import StockIterator
import Stock
import Portfolio
 
class TitTatStrategy( Object ):

src/p/y/python-stocks-HEAD/StockSimulator.py   python-stocks(Download)
import StockIterator
import Stock
 
 
 

src/p/y/python-stocks-HEAD/StockIterator.py   python-stocks(Download)
import StockDAO
import Stock
 
class StockIterator( Object ):
    def __init__( self, index, startDate, endDate, price = Stock.CLOSE ):