Saturday, 3 September 2022

How to listen to DDE data continuously

Edit: also looking for a python solution


In R, I am able to retrieve DDE data into R from a third-party application using the following request:

library(tcltk2)
tk2dde.request(service = 'prortdde',topic='MNQXXXX', item='last')
"12262.75"

I'd like to continuously update this data. Is there a "best practice", other than to just include it into a loop, to listen to DDE updates?

Including in a loop means losing data when updates are faster than loop execution... Thanks for any help.



from How to listen to DDE data continuously

No comments:

Post a Comment