Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

News / articles #138

Open
gadicc opened this issue Apr 15, 2021 · 0 comments
Open

News / articles #138

gadicc opened this issue Apr 15, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@gadicc
Copy link
Owner

gadicc commented Apr 15, 2021

Feature Request

Wanted Feature

API for news articles that appear on main quote page, e.g. on https://finance.yahoo.com/quote/GME.

Potential Example Usage

await yahooFinance.news(symbol)

Maybe. Need to explore Yahoo's API further before deciding on our own

Find articles with:

in /quote/SYMBOL (html) page, somewhere deep in root.main:

  "stream_items": [{
                                    "i13n": {
                                        "bpos": 1,
                                        "cpos": 1,
                                        "cposy": 1
                                    },
                                    "summary": "Hedge funds are to revise the way they monitor risk after retail investors sent the price of stocks such as GameStop soaring — triggering big losses for the fund managers that bet against them.  Investors co-ordinating their purchases on Reddit’s WallStreetBets message board were able to drive up the share price of Gamestop, the US video game retailer, from less than $20 at the start of the year to more than $480 by late January, while the prices of some other beaten-down stocks also soared.  For some hedge funds, that proved painful.",
                                    "storyline": [{
                                        "cposy": 2,
                                        "is_eligible": true,
                                        "url": "https:\u002F\u002Ffinance.yahoo.com\u002Fnews\u002Fgamestop-leads-stonks-higher-174118477.html",
                                        "title": "GameStop leads 'meme stocks' higher, snaps seven-day losing streak",
                                        "images": {
                                            "img:72x72": {
                                                "height": 72,
                                                "width": 72,
                                                "url": "https:\u002F\u002Fs.yimg.com\u002Fuu\u002Fapi\u002Fres\u002F1.2\u002Faej5z4vRYOHCgushc1Naxw--~B\u002FZmk9c3RyaW07aD0xNDQ7cT04MDt3PTE0NDthcHBpZD15dGFjaHlvbg--\u002Fhttps:\u002F\u002Fs.yimg.com\u002Fuu\u002Fapi\u002Fres\u002F1.2\u002FC0UelkZsjBTTAvn5fihRJA--~B\u002FaD01MTQ7dz04MDA7YXBwaWQ9eXRhY2h5b24-\u002Fhttps:\u002F\u002Fmedia.zenfs.com\u002Fen\u002Freuters.com\u002F600d39f5857598cac0d276f5f8696ee4"
                                            }
                                        },
                                        "type": "article",
                                        "link": "\u002Fnews\u002Fgamestop-leads-stonks-higher-174118477.html",
                                        "id": "b5894c4c-7768-3c1e-a217-d00bb2129933",
                                        "publisher": "Reuters",
                                        "publisher_id": "reuters.com",
                                        "off_network": false
                                    }, {
                                        "cposy": 3,
                                        "is_eligible": true,
                                        "url": "https:\u002F\u002Fwww.fool.com\u002Finvesting\u002F2021\u002F04\u002F14\u002Fheres-why-gamestop-stock-soared-today\u002F?source=eptyholnk0000202&utm_source=yahoo-host&utm_medium=feed&utm_campaign=article&yptr=yahoo",
                                        "title": "Here's Why GameStop Stock Soared Today",
                                        "images": {
                                            "img:72x72": {
                                                "height": 72,
                                                "width": 72,
                                                "url": "https:\u002F\u002Fs.yimg.com\u002Fuu\u002Fapi\u002Fres\u002F1.2\u002FfziEGadxeqCYv7BFTYRj7w--~B\u002FZmk9c3RyaW07aD0xNDQ7cT04MDt3PTE0NDthcHBpZD15dGFjaHlvbg--\u002Fhttps:\u002F\u002Fs.yimg.com\u002Fuu\u002Fapi\u002Fres\u002F1.2\u002FNixx9f0XQMgHHmpH6.av4g--~B\u002FaD0xMDg0O3c9MTQwMDthcHBpZD15dGFjaHlvbg--\u002Fhttps:\u002F\u002Fmedia.zenfs.com\u002Fen\u002Fmotleyfool.com\u002F0d6da71b965e64c5fb9ac2ee80ef8dfe"
                                            }
                                        },
                                        "type": "article",
                                        "link": "\u002Fm\u002F1624b7dc-35e4-3475-be73-bea1932d92fc\u002Fhere-s-why-gamestop-stock.html",
                                        "id": "1624b7dc-35e4-3475-be73-bea1932d92fc",
                                        "publisher": "Motley Fool",
                                        "publisher_id": "motleyfool.com",
                                        "off_network": true
                                    }],
                                    "pubtime": 1618444800000,
                                    "is_eligible": true,
                                    "url": "http:\u002F\u002Fwww.ft.com\u002Fcms\u002Fs\u002Ff7ddacb6-dc07-4142-adb2-f7eedf3a2272,s01=1.html?ftcamp=traffic\u002Fpartner\u002Ffeed_headline\u002Fus_yahoo\u002Fauddev&yptr=yahoo",
                                    "format": "storyline",
                                    "title": "Hedge funds rethink after GameStop pain",
                                    "type": "article",
                                    "link": "\u002Fm\u002Fa91b84c9-1be3-3868-9c39-9697a1d86ded\u002Fhedge-funds-rethink-after.html",
                                    "id": "a91b84c9-1be3-3868-9c39-9697a1d86ded",
                                    "publisher": "Financial Times",
                                    "off_network": true
                                }

Retrieve articles with:

https://finance.yahoo.com/caas/content/article/?uuid=a91b84c9-1be3-3868-9c39-9697a1d86ded,40967e2d-73d6-310f-92a9-fb973d487bf3&appid=article2_csn&bucket=HPMODALMAST100,FPSATE101,FPDOGFOOD202&device=desktop&features=enableAdFeedbackV2,enableInArticleAd,enableSlideShowKV,enableVideoDocking,ncp,oathPlayer,outStream,showCommentsIconInShareSec,enableXrayTickerEntities,enableXrayNcpInModal,enableXrayNcp&lang=en-US&region=US&site=finance

@gadicc gadicc added the enhancement New feature or request label Apr 15, 2021
@gadicc gadicc mentioned this issue Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant