示例#1
0
    def load_securities(self, settings):
        SecurityLoader.__init__(self, settings)

        log.debug("Doing ticker load for F/X")

        #tickers = ['AUD/USD', 'USD/JPY', 'GBP/USD', 'EUR/JPY', 'EUR/USD', 'USD/CAD']
        tickers = ['EUR/USD', 'USD/CAD']

        log.debug("for now, HistDataFX ticker hardcodes loading to %s" % tickers)

        retval = list()
        for ticker in tickers:
            retval.append(Stock(ticker=ticker, sharesFloat=None, percentShort=None, exchange=None, type_ = Stock.FOREX))
        return retval
示例#2
0
 def __init__(self, settings):
     SecurityLoader.__init__(self, settings)
     log.warn("YahooSecurityLoader is deprecated, you probably want NasdaqSecurityLoader")
 def __init__(self, settings):
     SecurityLoader.__init__(self, settings)
     self.anon_ftp_email = settings.get("NasdaqSecurityLoader", "anonymousFTPEmail")