- Home /
How to retrieve current stock market prices?
So I had an idea for a stock market game that goes off the real time stock market values (Yes I know it has already been done). Before i start planning, is there even a way for Unity to retrieve the stock market values in real time?
Ah, finally, a question we game developers frequently come across and can quickly and successfully answer!
http://lmgtfy.com/?q=c%23+get+stock+market+prices
Yep!
Answer by CHPedersen · Nov 20, 2013 at 02:33 PM
Sure, if they're available online, that is. :)
Unity has all the required technology at its disposal to contact any website and make any TCP connection to any host, so, what you need to know is the location and format of the data, and the transfer protocol. Most convenient would be if the stock data was returned from some web service you know of, but in the very worst case, you could find a website that displays it, send a request to that URL through a socket and then manually parse the HTML string it returns.
Your answer
![](https://koobas.hobune.stream/wayback/20220613122311im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
make script target player that enters collider 0 Answers
lan server loockup without udp 1 Answer
Is it possible to send whole bytearray at once? JS 0 Answers
Player tag not being detected by Unity? 2 Answers
More like a bulletin than chat box 0 Answers