FAQ Database Discussion Community


How can I refresh data from yahoo finance API every time webpage is viewed in Python?

python,bottle,yahoo-finance
I'm running a website for personal use using Bottle, a simple web server for python. I'm using this API to get market data from yahoo finance. This is a simplified version of my script (my first script with Python, btw) with comments explaining how it works. I hope this is...

python pandas yahoo data ETF

python,pandas,yahoo-finance
I would like to fetch some ETF data from yahoo finance using pandas. If I go onto the yahoo finance website, I can find the single ETFs (e.g. C001). However, if I try to pull the data using python pandas, I get nothing. df = pd.io.data.DataReader('C001','yahoo',start=datetime(2010,1,1), end=date.today()) The code works...

Python: Calculating the growth rate over a year when the dates aren't the same

python,finance,yahoo-finance
I'm using python and Scrapy What I am trying to do is calculate the growth rate of a stock (or rate of return) over a year, using monthly, weekly or daily data. Let's take this CAT data for example. First on the list, is to calculate the rate of return...

Yahoo Finance Meteor Package, difficulty with stock symbol

meteor,yahoo-finance
I have successfully hooked up a Meteor Yahoo finance package. When I use a stock symbol like this "GOOG" it works fine, however when I use something like this "ENW.V" it fails. Here is my stock Template <template name="stock"> <h2>{{stock.symbol}}</h2> <ul> <li><strong>Name</strong> {{stock.name}}</li> <li><strong>Ask</strong> {{stock.ask}}</li> <li><strong>Bid</strong> {{stock.bid}}</li> </ul> </template> Here...

Trouble importing yahoo finance to python

python,yahoo-finance
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) ...

why is my beta different from yahoo finance?

python,covariance,yahoo-finance,quantitative-finance
I have some code which calculates the beta of the S&P 500 vs any stock - in this case the ticker symbol "FET". However the result seems to be completely different from what I am seeing on yahoo finance, historical this stock has been very volatile and that would explain...

Yahoo Finance Unparseable Date

java,processing,yahoo-finance,control-p5
I am trying to pull stock data from yahoo finance using the yahoo finance api for java. My program was working absolutely fine up until yesterday, when this piece of code just stopped working, throwing up the following errors: SEVERE: Unparseable date: "11/17/2014" java.text.ParseException: Unparseable date: "11/17/2014" at java.text.DateFormat.parse(DateFormat.java:337) at...

Using Yahoo! database without quantmod functions

r,loops,yahoo-finance
The problem I am trying to solve is looping a string through R with Yahoo! finance api. This would make a bunch of data frame files, but if I could convert it into xts, that would be awesome. However, the xts part is not as important. library(quantmod) DB <- quantmod:::DDB_Yahoo()...

Grabbing data from yahoo finance using meteor package, some values work some do not

json,meteor,yahoo-finance
I am using the following package for Meteor https://atmospherejs.com/ajbarry/yahoo-finance Using the YQL console and searching for "ENW.V" Symbol, I can get back certain data, however some just doesn't work. Here is my template. <template name="stock"> <h2>{{stock.symbol}}</h2> <ul> <li><strong>Name</strong> {{stock.name}}</li> <li><strong>Ask</strong> {{stock.ask}}</li> <li><strong>Bid</strong> {{stock.bid}}</li>...

How are dates formatted on Yahoo Finance?

date,yahoo-finance
I'm making a Python program to get stock data from Yahoo Finance. I want it to be able to get data from multiple stocks at multiple dates. The URL is like this: https://finance.yahoo.com/q/op?s=GOOG&date=1423785600, and I know how to change the stock sign, but how are the dates formatted? Is there...

Issue with Yahoo Finance API URLs in C# application

c#,yahoo-finance
I am generating url Strings to return finance data to a windows application and some strings are working while others are not. For example, I generated this string for Yahoo data and it works perfectly: http://ichart.finance.yahoo.com/table.csv?s=YHOO&a=10&b=13&c=2000&d=10&e=13&f=2000&g=d&ignore=.csv I then used the same program to generate this string for Google stock: http://ichart.finance.yahoo.com/table.csv?s=GOOG&a=10&b=13&c=2008&d=10&e=13&f=2008&g=d&ignore=.csv...

Grab data from Yahoo Finance using Meteor Package, some work some do not

json,meteor,yahoo-finance
I am using the following package for Meteor https://atmospherejs.com/ajbarry/yahoo-finance I cant seem to get a specified field to work, here is a link that contains a list of all the available fields, however 'j2' and some others I tested don't work, in the sense there is no response in the...

Spinner object doesn't take second input once a process is being executed

android,android-spinner,yahoo-finance
I am working on a finance app where i am populating the exchange currecny value using the Yahoo Finance Api and here is my implementation void currency_widget() { from.setAdapter(new CurrencyListAdapter(getActivity(), R.layout.country_list_item, recourseList)); from.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { @Override public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) { String m =...

How to get commodity data from yahoo finance?

yahoo-finance
I am working on a small widget for my projects which basically looks like this. Futures for Yahoo Finance How can I get the data for Natural Gas, Gasoline, Crude Oil, Heating Oil and their Change?. I want to retrieve those data via json maybe and create a box widget...