Message Boards Message Boards

4 Replies
3 Total Likes
View groups...
Share this post:

Dynamic Linking to Other Programs

Posted 11 years ago

How do you dynamically link to a data feed from a Trading/Financial program?  These types of programs use DDE Links to push dynamic data to Excel. It would be useful to directly link to Mathematica.


Thank you. 
POSTED BY: Scott Calabria
4 Replies
Posted 11 years ago
There is source code provided in the old Bloomberg/Mathematica link that may prove useful to you.

update, March 4, 2016 -- there's a new version coming soon. Source code available at
this GitHub link.
POSTED BY: Michael Stern
I am not familiar with programming using DDE, but if you were writing in  a .NET language, which you would be doing most likely if you were using DDE, you can use Mathematica's .NETLink.  

These products have already written the code necessary for their product and excel to interact, but likely haven't written the code needed to get their product and Mathematica to interact.
POSTED BY: Sean Clarke
Posted 11 years ago
Here is antother example of a program using DDE:

Why is it so easy to communicate with Excel and not Mathematica, using DDE ? 
POSTED BY: Scott Calabria
DDE appears to be an old, but still available version of .NET's COM for interprocess communication (
Communicating with a program using DDE requires writing a program using DDE, unless that program has already been written. What source for market data or program were you looking to link to? The code/feasibly will depend on the program you are talking about.

Mathematica provides .NET/Link which would be a good place to start writing code to work with DDE or COM/OLE. You would need to learn to program C# first however.

In some cases, we have provided packages which allow you to communicate with otther programs. For example, the Wolfram Finance Platform comes with a package that allows you to pull data from a bloomberg terminal installation on your machine and there is a package availabel that allows Mathematica to communicate with Excel.
POSTED BY: Sean Clarke
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract