On Thu, 15 Aug 2019, Riccardo (Jack) Lucchetti wrote:
On Wed, 14 Aug 2019, leonardosuarezromero(a)gmail.com wrote:
> Hi everyone
>
> I'm have been using the yahoo_get.gfn function since a while but I have
> noticed that the last trading day value is always empty, this results to be
> really annoying as it results to be the most important value to do
> forecasting. Anyone knows the reason and how to solve it?
Uhm, it must have something to do with the way we export the data from the
JSON buffer returned from yahoo. I'll take a look asap, thanks for the
report.
I just tried this:
<hansl>
include yahoo_get.gfn
nulldata 10
setobs 5 2019-08-02
x = yahoo_price("MMM")
print x -o
</hansl>
and got
<output>
x
2019-08-02 170.5500
2019-08-05 164.7100
2019-08-06 163.7100
2019-08-07 163.6400
2019-08-08 164.2200
2019-08-09 163.4700
2019-08-12 162.1000
2019-08-13 164.8800
2019-08-14 158.8100
2019-08-15
</output>
so I can see nothing wrong with this. Leonardo, could you provide an
example of a failing case?
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------