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
Can not update stock prices. Get invalid cookie error. #5894
Comments
I'm researching this case. The link to get quotes returns an incorrect result.
But V6 returns correct result
|
We don't have a file format check in our code, which is received in response in the function |
Swapping to v6 in mmex::weblink::YahooQuotes seems to work OK. Currency rates and stock values all update properly as far as I can see. Can we just switch over to v6? |
Alternatively we can stick with V7 but first CURL finance.yahoo.com to pull a session cookie then CURL https://query1.finance.yahoo.com/v1/test/getcrumb to get the crumb text and append it to the V7 query as seen here https://github.com/pstadler/ticker.sh/blob/acquire-yahoo-finance-session/ticker.sh#L40-L49 You can verify this works:
|
I think the cookie from the first finance.yahoo.com GET needs to be passed to CURL with the |
Just thinking aloud, can we not switch to Google finance api which I think is more stable and long runner? |
@vomikan I think this needs to be reopened. The v6 API is no longer functioning. |
As far as I am aware Google Finance doesn't have a public API endpoint so the only option there is web scraping. Better to get the Yahoo v7 endpoint working again. |
@n-stein Is this the V7 API? |
The chart API seems to work, but the quote API doesn't. |
@n-stein Yahoo V6 and V7 are permanent shutdown it seems |
Which symbol? Mine don't display June 1st yet either through the History download or the quote refresh. |
@n-stein the latest dev build is working for me, I can get stock prices again |
HI @n-stein, that may be because you checked the same day the trading closed. I checked next day just past midnight. |
Trading hasn't started for the day. Like I said it is midnight on 1st June here. Also it has same value as previous trading date which is 31st May. Please see the screenshots shared in the original post where I mentioned update delays. |
All symbols. So generic issue I guess but if you want to check one then please use ITC.NS |
Yes, it is. Thanks @n-stein. Back to good old days. 😎 |
The historical download isn't the one that pulls current date. Historical download only pulls close prices. The June 1st entry you see is a result of clicking the panel button to fetch the prices after midnight. That button doesn't pull close prices, it pulls the current market price. The quote refresh button on the panel always pulls the current market price from Yahoo and saves it with the current date. It doesn't care whether the market is open or not -- it's just the price that Yahoo reports at the moment you click the button. While the market is closed the market price is obviously the same as the last close price. When the market opens you can click refresh and it will update to the new market price. This is the way it has always worked. |
Seems like the case/logic. Works for me, just wanted to bring to your notice in case it was not observed. Thanks for the clarification, @n-stein. 'Good to go' from myside as well. 👍👏🎉 |
Is this Beta version also available for MAC ? Here https://onedrive.live.com/?authkey=%21AEWtos0VyDKnlN4&id=A0FB83D788D2D744%21104142&cid=A0FB83D788D2D744 |
Not yet, @whalley will need to build it |
Should be there now.. |
If the trading session is open, the price can vary greatly. Maybe this is the reason? |
No this doesn't make sense, IUSE.L hasn't had a trading low in the 80's since June 1st. |
The value 88.34 is strangely repeated at regular intervals. |
I think the issue could be here: https://github.com/moneymanagerex/moneymanagerex/blob/master/src/stockdialog.cpp#L483 When the user clicks the save button whatever value is in the current price field gets applied to whatever date is in the history date text box. So if you click a line in the history panel and click save it will overwrite that line with the current price. This is why you see the same value repeated multiple times, it is overwriting on the save click. I don't think we should be doing this. |
@Heny67 If you simply download rates then view them (don't click the save or add buttons) is the price correct? |
Sorry to butt in but this is still a bug, isn't it? |
This case closed! Moving the discussion there. |
Yes, I think that line should be using Today instead of the date from the history text control, i.e. if the user changes the current price and clicks save it updates today's price in the history data to whatever the user entered in the Current Price box, not some other historical date. We will continue in #6030. |
Hi n-stein! In the Edit securities investment menu, I clicked on the update rate button, the update share history window appeared, I pressed Ok and the data is not updated. The last data is from 16.06.2023. I tried with several shares. Money Manager Ex |
As I mentioned up thread the history download function within the Edit Stock Investment dialog only pulls data through the prior day. You won't receive data for 6/17 until your system date is 6/18. If you want data for the current date you have to use the Tools > Download Rates menu path or press the refresh button at the bottom of the investment panel. |
MMEX version:
Note: bug reporters are expected to have verified the bug still exists
either in the last stable version of MMEX or on updated development code
(master branch).
Operating System:
Description of the bug
Please describe your issue with details.
Add screenshot or other files if needed.
Reproduction
Is the bug reproducible?
Reproduction steps:
Expected result:
Actual result:
Additional information
If you have a backtrace for a crash or a warning, paste it here.
The text was updated successfully, but these errors were encountered: