StockQuotes Application example

28 views
Skip to first unread message

HM

unread,
Dec 4, 2018, 4:12:59 AM12/4/18
to MIT App Inventor Forum
Hello Everyone !!!

I want to make app like this one, stockquotes (mit app inventor2 example) .

i have test the app on my phone but doesnt the url given in example.

is that app really works ?? if YES then anyone tell us which URL i can use instead of given example.

SteveJG

unread,
Dec 4, 2018, 8:42:03 AM12/4/18
to MIT App Inventor Forum
The API ( http://finance.yahoo.com/d/quotes.csv?f=l1&s=GOOG  ) used in Dr. Wolber's Stock Quote tutorial http://appinventor.mit.edu/explore/ai2/stockquotes.html   is no longer valid  .

Try this instead

http://download.finance.yahoo.com/d/quotes.csv?s=     where this is the first line below 
GOOG                                                   and this is the stock symbol in the Text box
&f=sl1d1t1c1ohgv&e=.csv&columns='symbol,price,date,time,change,col1,high,low,col2  and this is the complete third line below


This code results in a csv file you have to clean up to get an acceptable display of information.


Here, I have done it for you



It has been a while since I coded this so it might not work either.  Try the code and let us know if my work around for the stock quotes tutorial still works.  Thanks.



Regards,
Steve

SteveJG

unread,
Dec 4, 2018, 10:29:25 AM12/4/18
to mitappinv...@googlegroups.com
Yahoo financial has terminated its service on the well used  data download.    Sorry, the work around and url posted above no longer works either.

HM

unread,
Dec 5, 2018, 12:32:18 AM12/5/18
to MIT App Inventor Forum
Hello 

@SteveJG - Yeah you are right Yahoo terminated it's services (google too, if im not wrong).

BTW, anybody tell me ,

1) how can i get api from Stock market website and which work with this example??
Reply all
Reply to author
Forward
0 new messages