Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Quad, 1 invisible), 877 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Trouble downloading from QUANDL [Re: Hredot] #473295
06/25/18 21:34
06/25/18 21:34
Joined: Feb 2017
Posts: 1,726
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,726
Chicago
No idea. Do you plan on waiting for a fix tomorrow, or will you use dataDownload today?

Re: Trouble downloading from QUANDL [Re: AndrewAMD] #473296
06/25/18 21:44
06/25/18 21:44
Joined: Sep 2017
Posts: 235
H
Hredot Offline OP
Member
Hredot  Offline OP
Member
H

Joined: Sep 2017
Posts: 235
Certainly will try dataDownload today! laugh As soon as I get home.

Re: Trouble downloading from QUANDL [Re: Hredot] #473299
06/26/18 00:21
06/26/18 00:21
Joined: Sep 2017
Posts: 235
H
Hredot Offline OP
Member
Hredot  Offline OP
Member
H

Joined: Sep 2017
Posts: 235
Thank you again for your help AndrewAMD! dataDownload works for getting the data.
However, I just figured out how to get the regular code to work:

Quote:
assetHistory(strf("WIKI/%s",Loop1),FROM_QUANDL);


instead of

Quote:
assetHistory(Loop1,FROM_QUANDL);


does the trick. Would have been nice if this was shown in one of the examples in the manual.

Last edited by Hredot; 06/26/18 00:21.
Re: Trouble downloading from QUANDL [Re: Hredot] #473301
06/26/18 16:44
06/26/18 16:44
Joined: Feb 2017
Posts: 1,726
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,726
Chicago
This also seems to work:

1) In the Asset list, set Asset to "NVDA" and Symbol to "WIKI/NVDA".
2) Use this script:
Code:
function run()
{
	assetList(".HistoryAssetsWiki.csv"); // load asset list
	while(asset(loop(Assets)))
	assetHistory(Symbol,FROM_QUANDL);
	quit();
}

This way, you can use all kinds of Quandl databases with the same asset list.

But this is odd. I would think that this script should work with this asset list:
Code:
function run()
{
	assetList(".HistoryAssetsWiki.csv"); // load asset list
	while(asset(loop(Assets)))
	assetHistory(0,FROM_QUANDL);
	quit();
}

It does not work. Zorro appears to be checking Quandl for Asset, not Symbol.

jcl, is this expected behavior of AssetHistory when using Quandl?

Re: Trouble downloading from QUANDL [Re: AndrewAMD] #473303
06/26/18 23:00
06/26/18 23:00
Joined: Sep 2017
Posts: 235
H
Hredot Offline OP
Member
Hredot  Offline OP
Member
H

Joined: Sep 2017
Posts: 235
This probably explains why STOOQ download fails as well. If Asset is requested instead of Symbol, then all entries are missing a ".US" at the end (e.g. "NVDA" vs "NVDA.US"). And so naturally STOOQ complains about bad format.

Page 2 of 2 1 2

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1