13 lines
199 B
Python
13 lines
199 B
Python
from vnpy.amqp.consumer import receiver
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
from time import sleep
|
|
c = receiver(user='admin', password='admin')
|
|
|
|
c.subscribe()
|
|
|
|
while True:
|
|
sleep(1)
|