Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (SBGuy), 652 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Help with CryptoCompareHistoryAPI #473396
07/02/18 19:29
07/02/18 19:29
Joined: Dec 2016
Posts: 12
K
kreko Offline OP
Newbie
kreko  Offline OP
Newbie
K

Joined: Dec 2016
Posts: 12
Hi,
1. I downloaded the CryptoCompareHistoryAPI from @vinsom's github.
2. I created a file and copied the code snippet that vinsom mentions in the Readme.
Quote:
dataFromCryptoCompare("EOS/EUR",60);


void removeChar(char* input, char ch)
{
char* output = input;
while (*input)
{
if (*input != ch)
{
*(output++) = *input;
}
++input;
}
*output = 0;
}

var dataFromCryptoCompare(string Code, int timeframe)
{
removeChar(Code,'/');

string Format;
Format = "%Y-%m-%d %H:%M,f3,f1,f2,,f4,f6";

char cmdParam[256];
sprintf(cmdParam, "%s %d", Code,timeframe);
exec("CryptoCompareHistoryAPI.exe", cmdParam, 1);

dataNew(1, 0, 7);
int numRecord = dataParse(1, Format, "Historyhistory.csv");
printf("n%s %d records read from CRYPTOCOMPARE", Code, numRecord);
dataSave(1, strf("%s.t6", Code));
return numRecord;

}

3. When I run this newly created script in Zorro, I get an error
Quote:


DownloadCryptoCompare compiling.......
Error in 'line 2:
'dataFromCryptoCompare' undeclared identifier
< dataFromCryptoCompare("EOS/EUR",60);
>.



Attached Files
DownloadCryptoCompare.c (63 downloads)
Capture.PNG
Last edited by kreko; 07/02/18 19:31.
Re: Help with CryptoCompareHistoryAPI [Re: kreko] #473692
08/05/18 11:03
08/05/18 11:03
Joined: Nov 2016
Posts: 103
NSW
V
vinsom Offline
Member
vinsom  Offline
Member
V

Joined: Nov 2016
Posts: 103
NSW
Hi Keko,
Please use this snippet in this other post:

http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=468152&page=3

Cheers

Re: Help with CryptoCompareHistoryAPI [Re: vinsom] #473694
08/05/18 11:08
08/05/18 11:08
Joined: Nov 2016
Posts: 103
NSW
V
vinsom Offline
Member
vinsom  Offline
Member
V

Joined: Nov 2016
Posts: 103
NSW
You can also try to move this line at the bottom of the script.

dataFromCryptoCompare("EOS/EUR",60);


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1