3 registered members (Ayumi, Akow, AndrewAMD),
1,505
guests, and 9
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Yahoo has changed their protocol
[Re: jcl]
#465935
05/18/17 08:15
05/18/17 08:15
|
Joined: Jul 2015
Posts: 8
Jens
Newbie
|
Newbie
Joined: Jul 2015
Posts: 8
|
|
|
|
Re: Yahoo has changed their protocol
[Re: jcl]
#465945
05/18/17 11:06
05/18/17 11:06
|
Joined: Jul 2000
Posts: 27,986 Frankfurt
jcl
OP
Chief Engineer
|
OP
Chief Engineer
Joined: Jul 2000
Posts: 27,986
Frankfurt
|
Ok, we found that you can download the same ETF data from Google. But I don't know how long, their API is also depreciated. For the moment, it works. So when you want to test or run Z8, run this script before:
void main()
{
string Code;
int N = assetList("AssetsZ8");
while(--N >= 0)
{
string URL = strf("https://www.google.com/finance/historical?q=%s&startdate=01-Jan-2000&output=csv",Assets[N]);
string Content = http_transfer(URL,0);
file_write("History\\history.csv",Content,0);
free(Content);
dataNew(1,0,7);
dataParse(1,"%d-%b-%y,f3,f1,f2,f4,f6","History\\history.csv");
printf(" %s",Assets[N]);
dataSave(1,strf("%s.t6",Assets[N]));
}
}
|
|
|
Re: Yahoo has changed their protocol
[Re: Sphin]
#465970
05/19/17 04:04
05/19/17 04:04
|
Joined: Jan 2017
Posts: 64
Jeff1228
Junior Member
|
Junior Member
Joined: Jan 2017
Posts: 64
|
I have account and data subscription with IB, and I run your scripts Heatmap and MVO, can I simple change "assetHistory(Names[N],FROM_YAHOO)" to "assetHistory(Names[N],FROM_IB)"? Would it work?
Is your code a seperate script I should run before I run other scripts? If so, should I run it every time before I run others? or I should put it somewhere in your Heatmap and MVO script?
Can I get stocks data from Google?
Last edited by Jeff1228; 05/19/17 04:17.
|
|
|
|