stockquotes

Stock Quotes from Yahoo finance for Indian NSE, BSE

岁酱吖の 提交于 2021-02-18 19:18:05
问题 Following is my query using YQL, data is fetched using Yahoo finance, I am using the symbols for the stocks traded on the Indian NSE, BSE http://query.yahooapis.com/v1/public/yql?q=select * from yahoo.finance.quotes where symbol in ("AIAENG.NS","ATULAUTO.NS")&env=http://datatables.org/alltables.env&format=json Strange thing is this query always return null data (Invalid data) for all the fields, even when the symbol that I am using is correct and can be used on the Yahoo finance for querying

Alpha vantage API Not working for NSE while the same query is giving output for foreign stocks

牧云@^-^@ 提交于 2021-02-05 05:54:50
问题 I was trying to get JSON for a company by calling API of alphavantage. For some company data it works and for some company it's failing. For example, for this query it works: https://www.alphavantage.co/query?function=TIME_SERIES_DAILY_ADJUSTED&symbol=IBM&outputsize=full&apikey={API_KEY} But for example this query fails: https://www.alphavantage.co/query?function=TIME_SERIES_DAILY_ADJUSTED&symbol=NSE:TATAMOTORS&outputsize=full&apikey={API_KEY} 回答1: go to link and search exact code for your

Download NSE 2021 data using Python

时光总嘲笑我的痴心妄想 提交于 2021-01-29 08:25:51
问题 I'm facing issue to access such URL via Python code https://www1.nseindia.com/content/historical/EQUITIES/2021/JAN/cm01JAN2021bhav.csv.zip This was working for last 3 years until 31-Dec-2020. Seems that the site has implemented some restrictions. There's solution for similar one here in VB NSE ACCESS DENIED This addition is made : "User-Agent" : "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11" "Referer" : "https://www1.nseindia.com

Are there any good client-side stock charting libraries out there? [closed]

左心房为你撑大大i 提交于 2020-01-20 18:49:25
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . I would like to display interactive financial stock charts on a website, something like Google or Yahoo finance. I saw some recommendations on this thread looking for stock charting component but many of the suggestions are commercial, or require silverlight to be installed. Can anyone recommend any decent

Download history stock prices automatically from yahoo finance in python

痴心易碎 提交于 2019-12-28 07:17:48
问题 Is there a way to automatically download historical prices of stocks from yahoo finance or google finance (csv format)? Preferably in Python. 回答1: Short answer: Yes. Use Python's urllib to pull the historical data pages for the stocks you want. Go with Yahoo! Finance; Google is both less reliable, has less data coverage, and is more restrictive in how you can use it once you have it. Also, I believe Google specifically prohibits you from scraping the data in their ToS. Longer answer: This is

Pandas' EMA not matching the stock's EMA?

回眸只為那壹抹淺笑 提交于 2019-12-21 01:18:06
问题 I am trying to use Python (with Pandas) to calculate the 20-day Exponential Moving Averages (EMA) of daily stock data for Intel (INTC). Pandas has a number of ways of doing this, and I've also tried stockstats, which runs on Pandas, but they never return the same EMA as I get from stock/finance websites. I've double checked the close prices, and they match, but the EMA always comes out "wrong". This is the CSV I'm using: INTC Stock Data It contains the daily Date, Month Name, Open, High, Low,

How to efficiently fill a column of dataframe with values calculated from other dataframes

房东的猫 提交于 2019-12-12 17:48:34
问题 I am trying to fill a dataframe ( elist ) with cumulative returns of firms and cumulative market returns. This can be done by looping through the elist dataframe using iterrows , see this link. However, this is slow. I am looking for a more potent, faster solution. The raw returns that are the inputs for the cumulative return calculations originate from two dataframes (ri, rm). The results should then be recorded in columns of elist . See example below, using the data in this file. Before

Historical US dollar to euro conversion

一笑奈何 提交于 2019-12-12 06:30:05
问题 In a program, I use the following procedure to convert EUR in DOLLAR or vice-versa. In general, this procedure works fine with whatever currency. public double getRate(String from, String to) { BufferedReader reader = null; try { URL url = new URL("http://quote.yahoo.com/d/quotes.csv?f=l1&s=" + from + to + "=X"); reader = new BufferedReader(new InputStreamReader(url.openStream())); String line = reader.readLine(); if (line.length() > 0) { return Double.parseDouble(line); } } catch

Filter numpy array of tuples

无人久伴 提交于 2019-12-12 05:20:56
问题 Scikit-learn library have a brilliant example of data clustering - stock market structure. It works fine within US stocks. But when one adds tickers from other markets, numpy 's error appear that arrays shoud have the same size - this is true, for example, german stocks have different trading calendar. Ok, after quotes download I add preparation of shared dates: quotes = [quotes_historical_yahoo_ochl(symbol, d1, d2, asobject=True) for symbol in symbols] def intersect(list_1, list_2): return

Problem with Stock Quote from Google Finance

巧了我就是萌 提交于 2019-12-12 01:36:34
问题 Below is the example I got from google finance for a stock quote. But it doesnt seem to be working. Stock price isnt displayed. Thanks <body> Hello world! Here is your portfolio:<br/> GOOG: <span id=_IG_SYM1_l></span> (<span id=_IG_SYM1_c></span>)<br/> AAPL: <span id=_IG_SYM2_l></span> (<span id=_IG_SYM2_c></span>)<br/> INTC: <span id=_IG_SYM3_l></span> (<span id=_IG_SYM3_c></span>)<br/> <script type="text/javascript"> var quote = new google.finance.Quote(); quote.enableDomUpdates( { 'GOOG' :