Re: [Jprogramming] Yahoo stock quotes

2019-11-30 Thread 'Mike Day' via Programming
Thanks, Tom Sorry - I tried replying from my android phone. The msg doesn’t seem to have been sent, so I’m trying again. Apologies if a similar msg appears! Anyway, I did have a go at getting your script working for “historical” data on London Stock Exchange quotes. Naturally, I prefer ddmmyyy

Re: [Jprogramming] Yahoo stock quotes

2019-11-29 Thread Thomas McGuire
The realtime quote gets updated at a different address. That page looks like some sort of JSON interaction is taking place to give the realtime update in the stock price. So for apple stock the realtime page would be: https://finance.yahoo.com/quote/AAPL?p=AAPL&.tsrc=fin-srch

Re: [Jprogramming] Yahoo stock quotes

2019-11-26 Thread 'Mike Day' via Programming
Might I ask once more whether there’s a get-around for capturing real-time or, failing that, close of play quotes from Yahoo? Thanks, Mike Sent from my iPad > On 26 Nov 2019, at 22:11, Gilles Kirouac wrote: > > Thomas > To avoid the dependency on Linux, without changing your syntax, I > r

Re: [Jprogramming] Yahoo stock quotes

2019-11-26 Thread Gilles Kirouac
Thomas   To avoid the dependency on Linux, without changing your syntax, I redefined epochtime as: NB.create a time stamp [of type character] NB.   epochtime'1/1/2019' NB.1546318800 epochtime =: 3 : 0 ":18000+86400*62091-~todayno _1|.".;._1 '/',y NB.normalized yr mn dy )   and I removed the two c

Re: [Jprogramming] Yahoo stock quotes

2019-11-25 Thread 'Mike Day' via Programming
Interesting... I don’t wish to waste Jprogramming bandwidth with non-J issues, but perhaps you won’t mind my just asking whether there’s a similar get-round for current, or at least close of play daily data? I gave up trying to keep my J script using gethttp on yahoo prices working when they

Re: [Jprogramming] Yahoo stock quotes

2019-11-24 Thread Thomas McGuire
OK so here is my final code cleaned up and now working due to the double quote issue (see second to last line of code): NB. Navigating yahoo.com to programmatically get historical stock prices NB. require 'web/gethttp' require 'regex' NB. use the linux date command to create a linux time stamp e

Re: [Jprogramming] Yahoo stock quotes

2019-11-24 Thread Thomas McGuire
Ric for not looking at my code you are amazing. I put the ‘dquote’ function in front of the URL that goes to get the actual stock quotes and bingo CSV data dumped into my Jqt screen. It’s the second to last line of my script that was the culprit. It initially was: res2 =: '-s -b cookie.txt ' g

Re: [Jprogramming] Yahoo stock quotes

2019-11-24 Thread Ric Sherlock
Haven't got time to look at your code in detail, but stabbing blindly in the dark - have you tried double quoting your URL? See the following StackOverflow question and answer: https://stackoverflow.com/questions/55753504/reading-csv-file-from-a-a-secured-link-with-j On Mon, Nov 25, 2019 at 3:36 P

Re: [Jprogramming] Yahoo stock quotes

2019-11-24 Thread Henry Rich
Do you have an example of a script where you can see correct data going in and a bad result coming out? Henry Rich On 11/24/2019 9:30 PM, Thomas McGuire wrote: The following J script, patterned after Brad Lucas’ Bash script (http://blog.bradlucas.com/posts/2017-06-02-new-yahoo-finance-quote-d

[Jprogramming] Yahoo stock quotes

2019-11-24 Thread Thomas McGuire
The following J script, patterned after Brad Lucas’ Bash script (http://blog.bradlucas.com/posts/2017-06-02-new-yahoo-finance-quote-download-url/ ), doesn’t seem to work. I won’t go into the history of the yahoo a