Getting data from financial API

Hey

I thought it would be a good idea to have a game were you can buy/sell stocks of real companies without using real money :wink:

I would like to keep it as real as possible so I should take current stock data from somewhere.

I found the Yahoo! Financial API , it seems that I can send a request and they send me a csv file with the info requested.

I am not used to working with HTTP requests and so on. How should I work with this data inside Unity?

See you!

You’ll likely want to start with some research into the WWWForm and WWW.text class.
You can check those out at

Logic is as follows:
Form the http/https get request using a WWWForm and send it.
Get the resulting file using WWW
Read the content of the csv using WWW.text
Turn the csv into something meaningful to your application.

Yeah I did a new www(my url) and then printed the .text and it works, now I have to figure how to format this string :smile: Thx!