-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathReadme.txt
48 lines (35 loc) · 1.05 KB
/
Readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//Need to install the .Net Framework
//Put the CryptoCompareHistoryAPI.exe and dependencies in the Zorro directory
//1 minute history available is only 2 weeks
//60 minute history starts from 2014 for older coins
//To download the hourly history Call the Zorro snippet below with:
dataFromCryptoCompare("ETH/BTC",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, "History\\history.csv");
printf("\n%s %d records read from CRYPTOCOMPARE", Code, numRecord);
dataSave(1, strf("%s.t6", Code));
return numRecord;
}
- Donations Bitcoin Addrsss:
3KgJh9QUrWJBDKiDjLupVY3fqwgmkdUPzM