EugeneBosyakov

yoba.py

Nov 7th, 2018
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. import pythoncom
  2. from client import RTDClient
  3.  
  4. if __name__ == '__main__':
  5.     time = RTDClient('stellarcomserver.comapp.1')
  6.     time.connect()
  7.     time.register_topic('PRICE')
  8.  
  9.     while 1:
  10.         pythoncom.PumpWaitingMessages()
  11.  
  12.         if time.update():
  13.             print(time.get('PRICE'))
Advertisement
Add Comment
Please, Sign In to add comment