Code Monkey home page Code Monkey logo

Comments (11)

baerrus avatar baerrus commented on July 16, 2024

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.

HarryPublic avatar HarryPublic commented on July 16, 2024

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.

mcdallas avatar mcdallas commented on July 16, 2024

@baerrus quotes from Yahoo Finance are delayed though.

from wallstreet.

HarryPublic avatar HarryPublic commented on July 16, 2024

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.

nicad avatar nicad commented on July 16, 2024

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.

mcdallas avatar mcdallas commented on July 16, 2024

@nicad Yes. Apparently GF doesn't provide option chains for ETFs.

from wallstreet.

baerrus avatar baerrus commented on July 16, 2024

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.

HarryPublic avatar HarryPublic commented on July 16, 2024

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.

nicad avatar nicad commented on July 16, 2024

Would https://query2.finance.yahoo.com/v7/finance/options/SPY be a valid replacement ?

from wallstreet.

HarryPublic avatar HarryPublic commented on July 16, 2024

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.

mcdallas avatar mcdallas commented on July 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.