示例#1
0
def _workf(tick_id, session=None):
    ticks = yf.getTick(tick_id, session, length=date_len)
    ticks.sort()
    for _ in xrange(10):
        try:
            ticks.dumpToSQL()
            break
        except sqlite3.OperationalError, e:
            print e
            time.sleep(1)
示例#2
0
def _workf(tick_id, session=None):
    ticks = yf.getTick(tick_id, session, length=date_len)
    ticks.sort()
    for _ in xrange(10):
        try:
            ticks.dumpToSQL()
            break
        except sqlite3.OperationalError, e:
            print e
            time.sleep(1)
示例#3
0
def _workf(tick_id, host, session=None):
    ticks = yf.getTick(tick_id, session, length=date_len)
    ticks.sort()
    ticks.dumpToMongoDB()
示例#4
0
def _workf(tick_id, host, session=None):
    ticks = yf.getTick(tick_id, session, length=date_len)
    ticks.sort()
    ticks.dumpToMongoDB()