[R-SIG-Finance] Yahoo Finance Stock data (FTSEMIB.MI) Issue

Rasmus Liland jr@| @end|ng |rom po@teo@no
Thu Jun 18 19:48:06 CEST 2020


On 2020-06-18 18:48 +0200, Daniel Cegiełka wrote:
> On 18 Jun 2020, at 16:58, Christopher Kromm wrote:
> > 
> > If I cannot get the data from Yahoo 
> > Finance, are there alternative suggested 
> > sources for an R user to get this data?
> 
> curl 'https://charts.borsaitaliana.it/charts/services/ChartWService.asmx/GetPrices' -H 'Connection: keep-alive' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'DNT: 1' -H 'X-Requested-With: XMLHttpRequest' -H 'Content-Type: application/json; charset=UTF-8' -H 'Origin: https://charts.borsaitaliana.it' -H 'Sec-Fetch-Site: same-origin' -H 'Sec-Fetch-Mode: cors' -H 'Referer: https://charts.borsaitaliana.it/charts/Bit/SummaryChart.aspx?code=CB.FTSEMIB&lang=en' -H 'Accept-Encoding: gzip, deflate, br' --data-binary '{"request":{"SampleTime":"1d","TimeFrame":"5y","RequestedDataSetType":"ohlc","ChartPriceType":"price","Key":"FTSEMIB.IDX","OffSet":0,"FromDate":null,"ToDate":null,"UseDelay":true,"KeyType":"Topic","KeyType2":"Topic","Language":"en-US"}}' --compressed > FTSEMIB.json

Dear Daniel Cegiełka,

that's a great answer!  Are you (or others) 
able to elaborate more on how you determined 
the headers to send?

Best,
Rasmus

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20200618/4364aa1f/attachment.sig>


More information about the R-SIG-Finance mailing list