I am wondering what is the easiest way to get the current stock price from yahoo finance (or similar) in objective-C for the iPhone SDK.
A simple key, I am looking for the current price and movement of days.
I was not lucky to find an example iPhone code or library.
considers
Use the object NSURLRequestto retrieve data at this address:
NSURLRequest
http://download.finance.yahoo.com/d/quotes.csv?s=AAPL&f=sl1d1t1c1ohgv&e=.csv
[NSString stringWithFormat:] AAPL , . CSV, , . , [NSString componentsSeparatedByString: @","], , .
[NSString stringWithFormat:]
[NSString componentsSeparatedByString: @","]
, , :
NSLog(@"%@", [NSString stringWithContentsOfURL:[NSURL URLWithString:@"http://download.finance.yahoo.com/d/quotes.csv?s=BP.L&f=sl1d1t1c1ohgv&e=.csv"]]);
BP .
, AAPLot . --, .
Yahoo Developer Network "".
Quandl Stock API Yahoo Google. CSV, , JSON XML. , CSV:
https://www.quandl.com/api/v1/datasets/WIKI/AAPL.csv
JSON:
https://www.quandl.com/api/v1/datasets/WIKI/AAPL.json
API, API 5000 .
, API .