Esempio n. 1
0
    def init(self):

        ## delete unwanted downloaded urls taking up space
        self.delete_unwanted()

        ## get localtime
        localtime = time.localtime()

        all, d_indexes, d_ADR = import_tickers.main()

        d_months = {
            'Jan': 1,
            'Feb': 2,
            'Mar': 3,
            'Apr': 4,
            'May': 5,
            'Jun': 6,
            'Jul': 7,
            'Aug': 8,
            'Sep': 9,
            'Oct': 10,
            'Nov': 11,
            'Dec': 12
        }

        return (
            all,
            d_months,
            localtime,
            d_indexes,
            d_ADR,
        )
Esempio n. 2
0
    def init(self):

        ## delete unwanted downloaded urls taking up space
        self.delete_unwanted()

        ## get localtime
        localtime = time.localtime()

        all, d_indexes, d_ADR = import_tickers.main()

        d_months = {'Jan': 1, 'Feb': 2, 'Mar': 3, 'Apr': 4, 'May': 5, 'Jun': 6, 'Jul': 7, 'Aug': 8, 'Sep': 9, 'Oct': 10, 'Nov': 11, 'Dec': 12}

        return (
            all, d_months, localtime, d_indexes, d_ADR,
            )
import import_tickers

tickers, d_indexes, d_ADR = import_tickers.main()

d_yahoo2msn = {
    'GB:BG': 'GB:BG.',
    'GB:RB': 'GB:RB.',
    'GB:SN': 'GB:SN.',
    'FR:EF1': 'FR:EI',
##            'BFb': 'BF.B',
    }

## also bw2reuters
## also ms2retuers
## retuers just different...
d_yahoo2reuters = {
    ## Austria
    'MMK.VI': 'MMKV.VI',
    'EBS.VI': 'ERST.VI',
    'EVN.VI': 'EVNV.VI',
    'RHI.VI': 'RHIV.VI',
    'OMV.VI': 'OMVV.VI',
    ## Belgium
    'BELG.BR': 'BCOM.BR',
    'OME.BR': 'OMEP.BR',
    ## Denmark
    'NOVO-B.CO': 'NOVOb.CO',
    ## England
    'AU.L': 'AUTN.L', 'BA.L': 'BAq.L', 'BBY.L': 'BALF.L', 'BT.A.L': 'BT.L', 'SDRC.L': 'SDR.L',
    'EVR.L': 'HK1q.L',
    ## France