Reputation: 1641
I'm building desktop MEAN ( MongoDB Express Angular NodeJS ) stack app, but I need to have an access to real time ( update on detected change ) currency exchange rates. In Excel, I can get a rate from MT4 easily with just 1 line code inside a cell, if MT4.exe
is runing.
What I want is to somehow access the data with javascript, for example the EUR/USD rate.
Is it possible or does it need any 3rd party libraries?
Upvotes: 0
Views: 745
Reputation: 1
MT4.exe
process is allowed:The forward-looking solution may use ZeroMQ messaging framework ( both NodeJS and MQL4 ports/wrappers exist ).
1) Using a
http
-wrapped JSON is way "too"-expensive in real-time FX-events processing.
2) Using aZeroMQ
-framework allows one to integrate against a remote (M+N)-shaded fault-resilient group of processors ( performance scaling / load-balancing + a fail-safe distributed system )
MT4.exe
process in NOT allowed at all:This scenario tests gray zone of legal protection of the MetaQuotes' intellectual property. Technically one can open and read a telnet <MT4server>:443
and experiment with a stream of QUOTE
messages incoming, but beware this may cause some legal countermeasures from MetaQuotes, and the history has shown a few of 'em. So, you have been warned.
Upvotes: 1
Reputation: 111404
Take a look at:
From the docs: "This demonstrates how you can communicate between a Node.js server and a MT4 client application quickly. There are no delays and the connection/calculations are done on the same tick."
Upvotes: 1