import bid/ask variable from other source (other broker or service like yahoo finance)

 
Hello
I want a script (2 functions) that retrieve the bid and ask in real time from one of a currency yahoo finance (or any other service that provides datas financial market) and the stock into a double variable.
I also want that in the function parameters I can add the name of the symbol.
simple example:
double lebid = GetBid ("eurusd", https: // ...);
double leask = GetAsk ("eurusd", htpps: // financial .... ");
 
Interesting idea  ... i can see how useful it would be :)   ...I'm not on this level yet :)