Code Monkey home page Code Monkey logo

Comments (4)

eriktaubeneck avatar eriktaubeneck commented on June 9, 2024

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.

kevinaskevin avatar kevinaskevin commented on June 9, 2024

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.

eriktaubeneck avatar eriktaubeneck commented on June 9, 2024

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.

cgoldberg avatar cgoldberg commented on June 9, 2024

thanks kevin

On Thu, Dec 19, 2013 at 6:29 PM, kevin [email protected] wrote:

Closed #11 #11.


Reply to this email directly or view it on GitHubhttps://github.com//issues/11
.

from ystockquote.

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.