Thank you for the website.
However, I don't have Office 365, only 2011 Mac version of Office for student and home.
Thank you for the website.
Thank you for the website.
However, I don't have Office 365, only 2011 Mac version of Office for student and home.
wget -nd -O - --quiet 'https://www.barchart.com/stocks/quotes/BRK.A' |
perl -n -e 'BEGIN { $/ = undef; } if ($_ =~ /"lastPrice":"([^"]+)/) { my $p = $1; $p =~ s/,//g; print "$p\n"; } else { print "Unavailable\n"; }'
wget -nd -O - --quiet 'https://finance.yahoo.com/quote/BRK-B' |
perl -n -e 'BEGIN { $/ = undef; } if ($_ =~ /"regularMarketPrice":\{"raw":([^,]+)/) { print "$1\n"; } else { print "Unavailable\n"; }'
curl --show-error --insecure --silent --location --max-redirs 10 --max-time 30 'https://finance.yahoo.com/quote/AMZN' |
perl -n -e 'BEGIN { $/ = undef; } if ($_ =~ /"regularMarketPrice":\{"raw":([^,]+)/) { print "$1\n"; } else { print "Unavailable\n"; }'
curl --show-error --insecure --silent --location --max-redirs 10 --max-time 30 'https://finance.yahoo.com/quote/ES=F' |
perl -n -e 'BEGIN { $/ = undef; } if ($_ =~ /"regularMarketPrice":\{"raw":([^,]+)/) { print "$1\n"; } else { print "Unavailable\n"; }'
curl --show-error --insecure --silent --location --max-redirs 10 --max-time 30 'https://www.barchart.com/futures/quotes/ESZ19' |
perl -n -e 'BEGIN { $/ = undef; } if ($_ =~ /"lastPrice":"([^"]+)/) { my $p = $1; $p =~ s/,//g; print "$p\n"; } else { print "Unavailable\n"; }'
Thank you for the suggestion.If you are running Cygwin on Windows (free other than the cost of Windows) or Linux, here are a few examples of retrieving current prices.
Code:wget -nd -O - --quiet 'https://www.barchart.com/stocks/quotes/BRK.A' | perl -n -e 'BEGIN { $/ = undef; } if ($_ =~ /"lastPrice":"([^"]+)/) { my $p = $1; $p =~ s/,//g; print "$p\n"; } else { print "Unavailable\n"; }' wget -nd -O - --quiet 'https://finance.yahoo.com/quote/BRK-B' | perl -n -e 'BEGIN { $/ = undef; } if ($_ =~ /"regularMarketPrice":\{"raw":([^,]+)/) { print "$1\n"; } else { print "Unavailable\n"; }' curl --show-error --insecure --silent --location --max-redirs 10 --max-time 30 'https://finance.yahoo.com/quote/AMZN' | perl -n -e 'BEGIN { $/ = undef; } if ($_ =~ /"regularMarketPrice":\{"raw":([^,]+)/) { print "$1\n"; } else { print "Unavailable\n"; }' curl --show-error --insecure --silent --location --max-redirs 10 --max-time 30 'https://finance.yahoo.com/quote/ES=F' | perl -n -e 'BEGIN { $/ = undef; } if ($_ =~ /"regularMarketPrice":\{"raw":([^,]+)/) { print "$1\n"; } else { print "Unavailable\n"; }' curl --show-error --insecure --silent --location --max-redirs 10 --max-time 30 'https://www.barchart.com/futures/quotes/ESZ19' | perl -n -e 'BEGIN { $/ = undef; } if ($_ =~ /"lastPrice":"([^"]+)/) { my $p = $1; $p =~ s/,//g; print "$p\n"; } else { print "Unavailable\n"; }'
Thank you for the suggestion.
I don't recognize the codes. What language? VBA?
C:\cygwin64\bin\bash.exe -c "/bin/perl -e 'my $cmd = q@/bin/curl --show-error --insecure --silent --location --max-redirs 10 --max-time 30 ,2beSingleQuote,https://finance.yahoo.com/quote/ES=F,2beSingleQuote, | /bin/perl -n -e ,2beSingleQuote,BEGIN { $/ = undef; } if ($_ =~ /\"regularMarketPrice\":\{\"raw\":([^,]+)/) { print qq#$1\n#; } else { print qq#Unavailable\n#; },2beSingleQuote,@; $cmd =~ s/,2beSingleQuote,/\047/g; print `$cmd`;' > 'C:\WINDOWS\TEMP\price.txt'"
), but it does work and the software and data source are free.