Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 730 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
download historic data #472079
04/05/18 14:16
04/05/18 14:16
Joined: Apr 2018
Posts: 16
C
claudio Offline OP
Newbie
claudio  Offline OP
Newbie
C

Joined: Apr 2018
Posts: 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.

Re: download historic data [Re: claudio] #472080
04/05/18 14:48
04/05/18 14:48
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
Post your script.

Re: download historic data [Re: AndrewAMD] #472081
04/05/18 14:58
04/05/18 14:58
Joined: Apr 2018
Posts: 16
C
claudio Offline OP
Newbie
claudio  Offline OP
Newbie
C

Joined: Apr 2018
Posts: 16
function main()
{
Verbose = 7+DIAG;
set(TICKS|FAST);
NumYears = 1;
assetAdd("SPY");
assetHistory("SPY",FROM_AV);
asset("SPY");
plot("Dotted",price(),DOT,GREEN);
}

Re: download historic data [Re: claudio] #472082
04/05/18 15:01
04/05/18 15:01
Joined: Apr 2018
Posts: 16
C
claudio Offline OP
Newbie
claudio  Offline OP
Newbie
C

Joined: Apr 2018
Posts: 16
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

Re: download historic data [Re: claudio] #472083
04/05/18 15:37
04/05/18 15:37
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
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?

Re: download historic data [Re: AndrewAMD] #472084
04/05/18 16:03
04/05/18 16:03
Joined: Apr 2018
Posts: 16
C
claudio Offline OP
Newbie
claudio  Offline OP
Newbie
C

Joined: Apr 2018
Posts: 16
Ok, thanks.

Yes, here (of course the real one):
...
AVApiKey = "RRRRRRRRRRRRRRR" // your AlphaVantage API key

Re: download historic data [Re: claudio] #472092
04/06/18 10:35
04/06/18 10:35
Joined: Apr 2018
Posts: 16
C
claudio Offline OP
Newbie
claudio  Offline OP
Newbie
C

Joined: Apr 2018
Posts: 16
Solved.
The problem was the VPN.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1