vnpy/vnpy/amqp/test01_receiver.py
2019-12-01 00:28:17 +08:00

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)