Here is some VBA code I use to get data from a provider through a DDE server (in this case the Bloomberg data provider DDE Server):
Sub bloom_get()
nChan = DDEInitiate("BLP", "S")
sSecurity1 = "JBIG Index" & ", [MLI_DATE=" & datestr & ",MLI_TOT_RTN_LOC="", MLI_PX_RTN_LOC="", MLI_EFF_DUR=""]"""
vrtResult1 = DDERequest(nChan, sSecurity1)
MsgBox (vrtResult1(1) & " " & vrtResult1(2) & " " & vrtResult1(3) & " " & vrtResult1(4) & " ")
DDETerminate (nChan)
End Sub
I am looking for a way to call such a DDE server from python code.
This code is specific somehow to the Bloomberg DDE server, but even if you can provide me with a more general approach that would be very helpful. I just have no idea whatsoever in how to solve that issue since DDEs are microsoft apps specifics.
Among the things that could be helful:
- The name of a package allowing to call DDE from Python
- A workaround using a third app, maybe coded in VB or VB.NET itself called from Python, somehow like when you make a DDL in c++ then called from VBA, but the opposite?
Edit: No, the requested data is not availbale through the official API.
Thanks