Posted By: claudio
download historic data - 04/05/18 14:16
I'm trying to download data from AV and/or Google using download script or writing my own one, but I always receive the same message
Download SPY..
SPY bad format
I've also tried with
Verbose = 7+DIAG;
but the message is always the same.
Any ideas?
Thanks.
Claudio.
Posted By: claudio
Re: download historic data - 04/05/18 14:58
function main()
{
Verbose = 7+DIAG;
set(TICKS|FAST);
NumYears = 1;
assetAdd("SPY");
assetHistory("SPY",FROM_AV);
asset("SPY");
plot("Dotted",price(),DOT,GREEN);
}
Posted By: claudio
Re: download historic data - 04/05/18 15:01
and the verbose log:
Download SPY..
Open: Historyhistory.csv wb
Open: Historyhistory.csv r
Open: Historyhistory.csv wb
Open: Historyhistory.csv r
SPY bad format
Load AssetsFix
Open: HistoryAssetsFix.csv rb
Error 055: SPY history missing (2018 8192 HistorySPY.t6)
Error 055: no SPY 2018..2018 prices
Asset SPY status SPY:L 254854576 0
Asset SPY status SPY:S 254854576 0
Raus
Neural
Close files
Posted By: AndrewAMD
Re: download historic data - 04/05/18 15:37
Your script is wrong for plotting.
In any case, I had no problems downloading daily history with that script. Did you put your AlphaVantage API key in your Zorro.ini file?
Posted By: claudio
Re: download historic data - 04/05/18 16:03
Ok, thanks.
Yes, here (of course the real one):
...
AVApiKey = "RRRRRRRRRRRRRRR" // your AlphaVantage API key
Posted By: claudio
Re: download historic data - 04/06/18 10:35
Solved.
The problem was the VPN.