Example #1
0
def start_tick_retriever(instruments):
    i = 0
    t = Tick(instruments)
    while True:
        try:
                t.retrieve()
                time.sleep(1)
                i += 1
                print '------', i
        except Exception as e:
            print 'error: ', e
            time.sleep(1)
def start_tick_retriever(instruments):
    i = 0
    t = Tick(instruments)
    while True:
        try:
            t.retrieve()
            time.sleep(1)
            i += 1
            print '------', i
        except Exception as e:
            print 'error: ', e
            time.sleep(1)