Here is an open source project that is made of a HTTP server in C# that receives foreign exchange rates that are sent to it by Metatrader 5 :
https://github.com/reuniware/Forex-Rates-Viewer/
It is composed of a Metatrader 5 expert advisor that sends forex rates in realtime to the HTTP server on port 9090 on the localhost (127.0.0.1).
Simple, powerful, and free (forex rates services are paid services in general).