Comments (11)
THis code fetches option quotes from GoogleFinance, right? I have noticed that GF website does not show options chains for indeces like VIX, SPX etc.
How difficult would it be to attach yahoo finance as a secondary quote provider?
from wallstreet.
Not sure yahoo also provides greeks ... oh but looked at your code ... you have implemented black scholes so its just a question of getting the data and feeding the BS model. Maybe not today, but I might send out a pull request over the next couple of weeks. Definitely doable.
from wallstreet.
@baerrus quotes from Yahoo Finance are delayed though.
from wallstreet.
Looks like YF will not work. The recently changed / broke their API and the
whole pandas community is unable to fix it. I only need delayed data - I
want to run my code on my portfolio and identify and email me the most
outlier positions (most at risk, most safe) and it does not matter much if
the data is a bit delayed. I find that much better than going through my
position list manually (it is somewhat big).
On Wed, Sep 21, 2016 at 6:39 AM, Mike Dallas [email protected]
wrote:
@baerrus https://github.com/baerrus quotes from Yahoo Finance are
delayed though.—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#3 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVRkf6OSsUZ3WY-gI2CF_tLxAQZbNS9yks5qsTOngaJpZM4KBFFA
.
from wallstreet.
is it the same issue that ETF options are not available:
`
import wallstreet
s = Stock('SPY')
Traceback (most recent call last):
File "", line 1, in
NameError: name 'Stock' is not defined
s = wallstreet.Stock('SPY')
s.price
215.97
p = wallstreet.Put('SPY')
Traceback (most recent call last):
File "", line 1, in
File "/Users/XXX/imports/wallstreet/wallstreet/wallstreet.py", line 143, in init
super().init(quote, *_kw)
File "/Users/XXX/imports/wallstreet/wallstreet/wallstreet.py", line 107, in init
raise LookupError('No options listed for this stock.')
LookupError: No options listed for this stock.
p = wallstreet.Put('GOOG')
No options listed for given date, using 21-10-2016 instead
p = wallstreet.Put('EFA')
Traceback (most recent call last):
File "", line 1, in
File "/Users/XXX/imports/wallstreet/wallstreet/wallstreet.py", line 143, in init
super().init(quote, *_kw)
File "/Users/XXX/imports/wallstreet/wallstreet/wallstreet.py", line 107, in init
raise LookupError('No options listed for this stock.')
LookupError: No options listed for this stock.`
also don't need real-time
from wallstreet.
@nicad Yes. Apparently GF doesn't provide option chains for ETFs.
from wallstreet.
GF also started skipping whole options series arbitrarily. For example take a look at SBUX. Today it shows only Oct21, Jan17 and Jan18 expirations. SBUX has weeklies as well as Nov and Dec series listed.
from wallstreet.
I think most of the options data now is for fee, but even for fee there is
no simple API to pull those out.
On Fri, Oct 7, 2016 at 10:28 AM, Baerrus Magnus [email protected]
wrote:
GF also started skipping whole options series arbitrarily. For example
take a look at SBUX. Today it shows only Oct21, Jan17 and Jan18
expirations. SBUX has weeklies as well as Nov and Dec series listed.—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#3 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVRkf6nvPVtSQao7VjYLocA0oodAlBiHks5qxoFYgaJpZM4KBFFA
.
from wallstreet.
Would https://query2.finance.yahoo.com/v7/finance/options/SPY be a valid replacement ?
from wallstreet.
this is fantastic, but my personal interest is exclusively in index options
(SPX, RUT, NDX), so no. Not for me.
On Fri, Oct 7, 2016 at 11:06 AM, nicad [email protected] wrote:
Would https://query2.finance.yahoo.com/v7/finance/options/SPY be a valid
replacement ?—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#3 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVRkfxcTtdwuIHsObNmnRyUScXkckUz1ks5qxoojgaJpZM4KBFFA
.
from wallstreet.
I have added Yahoo Finance as a secondary source. You can use it by passing the source='yahoo' parameter but keep in mind that it might be delayed. It is not up on PyPI yet cause there might be some bugs. You can pip install by passing the url or clone the repo.
from wallstreet.
Related Issues (20)
- LookupError: Ticker symbol not found. Try adding the exchange parameter HOT 2
- API change?
- Numerous RuntimeWarning for internal procedures
- .HTTPError exception HOT 1
- SyntaxError: invalid syntax HOT 1
- 'bid' and 'ask' are often 0, in an inconsistent pattern HOT 2
- Theta values on short duration options
- Is there volume for Stock()?
- _fprime is not correct when computing implied volatility HOT 3
- issue simple usage of wallstreet HOT 2
- Error raised by query2.finance.yahoo.com HOT 2
- Inconsistent error messages when passing invalid tickers under default options
- Source='google' option fails HOT 4
- error importing wallstreet package HOT 1
- Getting a 403 Client Error for any request HOT 2
- risk free rate month2 missing HOT 1
- "No options listed for stock", but it exists in yahoo finance HOT 2
- requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://query2.finance.yahoo.com/v7/finance/options/AAPL HOT 1
- Need to fecth currency conversion rates HOT 1
- Yahoo Finance update caused Stock.historical() not work HOT 1
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 wallstreet.