yahoo-finance

How to use getReturns with the Yahoo finance API

与世无争的帅哥 提交于 2019-12-09 07:01:38
问题 I have problems with R package getReturns . I have encountered this error since 17th May: Warning in file(file, "rt") : cannot open URL 'http://ichart.finance.yahoo.com/table.csv?s=AAPL&a=4&b=28&c=2014&d=4&e=27&f=2017&g=w&ignore=.csv': HTTP status was '404 Not Found' It looks like that ichart API did not run anymore. Can anyone help me with this issue? Does someone know how to fix it? I have encountered the same issue with the quantmod R package. 回答1: You can follow my an earlier post, which

concat pandas DataFrame along timeseries indexes

删除回忆录丶 提交于 2019-12-09 04:25:24
问题 I have two largish (snippets provided) pandas DateFrame s with unequal dates as indexes that I wish to concat into one: NAB.AX CBA.AX Close Volume Close Volume Date Date 2009-06-05 36.51 4962900 2009-06-08 21.95 0 2009-06-04 36.79 5528800 2009-06-05 21.95 8917000 2009-06-03 36.80 5116500 2009-06-04 22.21 18723600 2009-06-02 36.33 5303700 2009-06-03 23.11 11643800 2009-06-01 36.16 5625500 2009-06-02 22.80 14249900 2009-05-29 35.14 13038600 --AND-- 2009-06-01 22.52 11687200 2009-05-28 33.95

YQL - No definition found for Table

送分小仙女□ 提交于 2019-12-08 12:23:26
问题 My code: import yql y = yql.Public() query = 'SELECT * FROM yahoo.finance.option_contracts WHERE symbol="SPY"' y.execute(query) Result: yql.YQLError: No definition found for Table yahoo.finance.option_contracts I know that the table exists because I can test the query at http://developer.yahoo.com/yql/console/ and it works. What am I missing? Update: I posted the url to the console but not the query I tried in the console. The query is now attached. http://goo.gl/mNXwC 回答1: Since the yahoo

Understanding yahoo_quote_download

独自空忆成欢 提交于 2019-12-08 10:36:31
问题 Since Yahoo Finance terminated its service to download EoD prices data, I have come across the following Python script yahoo_quote_download to continue downloading the data I require. Unfortunately, I am completely new to Python, and I am struggling with using this promising tool. I am running Python 2.7.10 on Mac OS X. Having followed the installation instructions of the script, I have not observed any error messages. The readme.md file states the following: The CSV file downloaded through

Trouble importing yahoo finance to python

风格不统一 提交于 2019-12-08 07:24:45
问题 I have installed yahoo finance from the PyPI with pip, and when I go to run the following script i get an import error: No module named yahoo_finance from yahoo_finance import Share BlackDiamond = Share('BDE') print(BlackDiamond.get_open) 回答1: Make sure pip installed to somewhere in Python's include path. Run this command: $ pip show yahoo-finance --- Metadata-Version: 1.1 Name: yahoo-finance Version: 1.2.1 Summary: Python module to get stock data from Yahoo! Finance Home-page: https://github

Yahoo finance API Quotes wrong date randomly - between today and yesterday days ago

可紊 提交于 2019-12-07 16:12:11
问题 I am using the yahoo finance API to get the price quotes from the market that has closed. I usually run the API at about 11pm at night (USA time). The API will return today's market data some times and yesterdays market data sometimes. It seems to be random and if you run it a few times in a row you can see it randomly switching between these dates. How can I get it to consistently return the latest quotes and not yesterday's quotes? 来源: https://stackoverflow.com/questions/39177284/yahoo

Fixing panda's datareader from yahoo finance with Enthought Canopy

青春壹個敷衍的年華 提交于 2019-12-07 15:41:35
问题 pandas' datareader from yahoo finance is not working at the moment because yahoo changed the url pandas used to get the data from, yahoo changed it from 'http://ichart.yahoo.com/table.csv?... to 'http://ichart.finance.yahoo.com/table.csv?... . The error I'm getting is IOError: after 3 tries, Yahoo! did not return a 200 for url '...' So, I tried editing data.py, according to this fix, but still no go. I'm using pandas 0.12, with Enthought Canopy. Do I need to compile something..? is there

How to retrieve BSE/NSE listed stock's price from finance.yahoo.com

∥☆過路亽.° 提交于 2019-12-06 05:11:10
问题 I'm developing an application for stocks displaying through finance.yahoo.com in Java using Spring framework. But it only provides share values from NYSE, Nasdaq-NM, etc. How can I retrieve the values of share by specify NSE or BSE? 回答1: You can retrieve the components of BSE and NSE with these two links: http://in.finance.yahoo.com/gainers?e=bo and http://in.finance.yahoo.com/losers?e=bo ( Gainers and Losers ). Once you have your full list of stocks, just use your link to retrieve data, for

How to lookup an index in Yahoo's stock API

那年仲夏 提交于 2019-12-06 04:51:47
问题 I'm using Yahoo's stock API to get stock quotes, as described here. Basically, I just assemble a link like this: http://finance.yahoo.com/d/quotes.csv?s=DOW+MSFT+AAPL+GOOG&f=snl1 which'll give me a list of the current price for those stocks (DOW, MSFT, AAPL, GOOG). All's nice and dandy, but I'd also like to get the info for the NASDAQ and S&P 500 Indices, but I have no idea what to use as the symbol for those. I tried all of these: NASDAQ INDEXNASDAQ INDEXNASDAQ:.IXIC INDEXNASDAQ.IXIC IXIC to

Fixing panda's datareader from yahoo finance with Enthought Canopy

夙愿已清 提交于 2019-12-06 03:13:35
pandas' datareader from yahoo finance is not working at the moment because yahoo changed the url pandas used to get the data from, yahoo changed it from 'http://ichart.yahoo.com/table.csv?... to 'http://ichart.finance.yahoo.com/table.csv?... . The error I'm getting is IOError: after 3 tries, Yahoo! did not return a 200 for url '...' So, I tried editing data.py, according to this fix , but still no go. I'm using pandas 0.12, with Enthought Canopy. Do I need to compile something..? is there anything more required? in (assuming that the user is using Enthought Canopy for Windows, and it's stored