Пример #1
0
    def check(self, freq, start=None, end=None):
        if freq is None:
            freq = get_env().freq
        else:
            freq = freq.split(',')

        for f in freq:
            self.multi('check')(f, start, end)
Пример #2
0
    def env(cls):
        from fxdayu_sinta.IO.environment import get_env
        from fxdayu_sinta.IO import MONGO

        mongo = get_env()[MONGO]
        return cls(create_client(mongo['client']), mongo['main'], mongo['freq'])
Пример #3
0
 def __init__(self):
     self.env = get_env()
Пример #4
0
 def env(cls, code):
     env = get_env()
     return cls(
         Master(env.file_root, code),
         env.db_manager[code]
     )
Пример #5
0
 def __init__(self):
     self.field = list()
     self.writer = Writer()
     self.env = get_env()
Пример #6
0
    def env(cls, code):
        env = get_env()

        return cls(env.file_root, code, env.freq)
Пример #7
0
    def env(cls, code):
        from fxdayu_sinta.IO.environment import get_env

        return cls(get_env().file_root, code)
Пример #8
0
 def env(cls):
     env = get_env()
     db = env.mongo[FREQ]["D"]["db"]
     return cls(env.db_manager.client[db])
Пример #9
0
 def set_fields(self, fields):
     if fields is not None:
         self.fields = fields.split(",")
     else:
         self.fields = get_env().market_index
Пример #10
0
    def env(cls, code):
        env = get_env()

        return cls(Freq(env.file_root, code, env.freq), env.db_manager)