Comments (4)
I haven't looked at the code base recently, but I don't think it requires a key, but instead just uses the data that Yahoo publishes freely.
from ystockquote.
Well than whats this ids variable in ystockquote.py
:
def get_all(symbol):
"""
Get all available quote data for the given ticker symbol.
Returns a dictionary.
"""
ids = \
'ydb2r1b3qpoc1d1cd2c6t1k2p2c8m5c3m6gm7hm8k1m3lm4l1t8w1g1w4g3p' \
'1g4mg5m2g6kvjj1j5j3k4f6j6nk5n4ws1xj2va5b6k3t7a2t615l2el3e7v1' \
'e8v7e9s6b4j4p5p6rr2r5r6r7s7'
values = _request(symbol, ids).split(',')
...
from ystockquote.
If you look down below that slightly, you'll see that each of these refers to a different data point returned from Yahoo:
def get_dividend_yield(symbol):
return _request(symbol, 'y')
def get_dividend_per_share(symbol):
return _request(symbol, 'd')
def get_ask_realtime(symbol):
return _request(symbol, 'b2')
etc.
from ystockquote.
thanks kevin
On Thu, Dec 19, 2013 at 6:29 PM, kevin [email protected] wrote:
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/11
.
from ystockquote.
Related Issues (20)
- Change values from string --> float
- API Gets Stuck
- Get_historcial HTTPError 404 On days market was closed HOT 3
- I use this interface by Chinese Stocks, it failure.
- What is returned on market holidays? HOT 1
- Market Index, DJI, does not pull data. Can work with NASDAQ, S & P 500 with proper URL encoding
- Analysts recommendation summary
- get_historical_prices not working--bad url? HOT 5
- exchange rates HOT 1
- get_50_sma() and get_200_sma() returns incorrect values HOT 1
- get_historical_prices not working HOT 10
- `get_all` returns messy data
- get_bid_realtime returning N/A
- urllib.error.HTTPError: HTTP Error 999: Request denied HOT 7
- Link expired from where the data is fetched HOT 1
- Obtaining latest ystockquote HOT 3
- HTTP Error 500: Internal Privoxy Error
- ಮತ್ತೆ ನೀನು ಹೇಗಿದ್ದೀಯ?
- HTTP 404 error
- Why my python (Spyder) got stuck (i.e. did not return result) when I was trying to run the code of retrieving stock data from yahoo finance
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ystockquote.