I've recently changed computers and after re-installing the scripts have found that alot of my intraday capital gains are not showing. I've included a picture to illustrate. The also only show up if I've made a transaction during the intraday.
P.S. My yahoo intraday script is now fixed with: data-reactid=`"29`"
Comments
2021-12-30,,^GSPTSE
2021-12-30,,^GSPC
2021-12-30,,^DJI
2021-12-30,,^RUT
2021-12-30,,^VIX
2021-12-30,,^IXIC
2021-12-30,,^TNX
2021-12-30,,GC=F
2021-12-30,,CL=F
If you are from USA, could you edit script and instead 29 use 47, that is:
data-reactid=`"47'"
$startStr = "active=`"`" data-reactid=`"47`">"; $endStr = "";
All my quotes failed when launching the .bat file.
When inputting:
$startStr = "active=`"`" data-reactid=`"29`">"; $endStr = "";
All my quotes succeed on the .bat but the prices seem to be blank on the YahooIntraday.txt as well as the GetQuotes-YahooIntraday.txt
I don't know if this is of interest but today the GetQuotes-YahooIntraday.txt (Jan 3rd) the shows:
"Symbol: ^GSPTSE. Next date: 2022-01-01." which I found odd.
I am from Canada.
Please fix it and then tomorrow, during the business day, please check if intraday file contain quotes.
What and, where in, should I add the text in your image file Vidas?
I assume it is one of these two lines in the GetQuotes-YahooIntraday windows power shell script file.
$startStr = ""; $endStr = "";
$startStr = "D(ib)`" data-reactid=`"32`">"; $endStr = ""; ## <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
I edited the first line.
$startStr = "active=`"`"data-reactid=`"29`">"; $endStr = ""; ## <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< This will need to be changed every time Yahoo changes where price is located
Ran both batch files and there is still nothing in yahooquotesIntraDay
I'm in Canada.
also checking the getQuotesYahoo file I see this for every quote.
Symbol: ABX.TO. Next date: 2022-01-12. Quote file: C:\Users\canopus\OneDrive\PortfolioSlicer\Quotes\_ABX.TO_.txt
Requesting url: https://query1.finance.yahoo.com/v7/finance/download/ABX.TO?period1=1641945600&period2=1641989470&interval=1d&events=history&crumb=3s462G8C5Nd
ABX.TO - Not Found (web err)
Thank you very much Vidas and PRoldie and Buddyb!!
Requesting url: https://finance.yahoo.com/quote/ABX.TO
** For Symbol: ABX.TO new quotes not found (there is no 'active="" data-reactid="29">' in html that came back)
For Symbol: NOU.V new quotes not found (there is no 'active="" data-reactid="29">' in html that came back)
Look for string that starts with
$startStr=
This is around line 40. Search for in your script and replace that line in my post above
new quotes not found (there is no 'data-field="regularMarketPrice" data-trend="none" data-pricehint="2" value="' in html that came back)
Tickers with that error were DIV.TO and HITI.V
Thanks.