-
Notifications
You must be signed in to change notification settings - Fork 5
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
RCHGetYahooHistory errors #2
Comments
I have traced the numerous modules that it goes through. The smfGetYahooHistory() is the problem module. |
Hi, I am not much of a VBA programmer other than simple macros, but I am an engineer that does embedded firmware coding and can do a bit of debugging and testing. I stepped through the smfGetYahooHistory() code and it seems the current code is looking for the string "HistoricalPriceStore" in the web page data returned via sData = smfGetWebPage(sURL). It seems this string is no longer in the returned web data source. Next step would be to capture the curent web page source to locate a new string that would allow smfStrExtr to find and return the stock data JSON it is looking for. Unfortunately I am not a HTML programmer either, so not sure how to do this, but am googling it and willing to learn. Thanks for your efforts to keep SMF_Add-in going! |
In the function smfGetYahooHistory() it does a bunch of formatting and checking parameters… that all looks fine.
The URL seems fine, it becomes this: https://finance.yahoo.com/quote/msft/history?period1=1641081600&period2=1672444800&interval=1d&filter=history&frequency=1d Thanks, |
I see the same thing. Using Firefox and its code inspector tool, I grabbed two screen shots. One shows the start of the table marked by data-test="historical-prices" that you found. The second shows the first table entry (date, open, high, etc. data). You can see the data values in there but seems no longer in a simple JSON format. |
I have been mapping the modules and calls, it has been quite a lengthy process. I'm also slowly learning more about scaping data. I think now that I have the block of data I need, I should be able to figure out how the module parses that data and re-write it accordingly. |
I have the function smfGetYahooHistory in module smfGetYahooHistory_ working with returned data. It can again select which items / columns and the order in which to return the data. |
Sweet! Eager to give it a try! Has the SMF download page been updated? Thanks! |
Yes it is updated. There seems to be still a few things to work on, but getting there. J
Mel
From: aggie81 ***@***.***
Sent: Tuesday, February 07, 2023 4:31 PM
To: ClimberMel/SMF_Add-in
Cc: ClimberMel; Assign
Subject: Re: [ClimberMel/SMF_Add-in] RCHGetYahooHistory errors (Issue #2)
Sweet! Eager to give it a try! Has the SMF download page been updated? Thanks!
—
Reply to this email directly, view it on GitHub <#2 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACMB2YORFUDCSEEJRFVYAJLWWLSNLANCNFSM6AAAAAATXGKWGQ> .
You are receiving this because you were assigned. <https://github.com/notifications/beacon/ACMB2YIGOTV6Y2ITFNRFUC3WWLSNLA5CNFSM6AAAAAATXGKWGSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSUXVVEE.gif> Message ID: ***@***.***>
|
The data seems to be in reverse order from what it used to be. I'm not sure if that is really an issue since there is a resort parameter that will switch the order of the returned data. |
The remaining issue was reported by Lew. He had an array of 20000 rows and it brought back from inception date, but stopped at 2020-12-31. That seemed odd. |
I'll close this issue as fixed. Most of these are fixed in the 3.0.2023.02.09 version and the sorting will be addressed in the 3.0.2023.02.15 version soon to be released. |
The formula RCHGetYahooHistory(C7,C8,C9,C10,C11,C12,C13,C14,C15,C16,C17,C18) is array entered and showing #NAME in all cells.
The data for C7 to C18 for the example is as follows: aapl,1990,1,1,2025,1,1,w,,1,1,1
The fields for those are: Ticker:,Start Year:,Start Month:,Start Day:,End Year:,End Month:,End Day:,Period:,Items:,Header:,Adjust:,Resort:
The text was updated successfully, but these errors were encountered: