From 06157628eb1c80225b93a25cb35362d36663a0ba Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 12 Apr 2019 08:21:55 -1100 Subject: [PATCH] Atol --- src/komodo_gateway.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 73df3a546..f03d74c11 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -2016,7 +2016,7 @@ cJSON *get_urljson(char *url) int32_t get_stockprices(uint32_t now,uint32_t *prices,std::vector symbols) { - char url[32768],*symbol; cJSON *json,*obj; int32_t i,n=0,retval=-1; uint32_t uprice,timestamp; + char url[32768],*symbol,*timestr; cJSON *json,*obj; int32_t i,n=0,retval=-1; uint32_t uprice,timestamp; sprintf(url,"https://api.iextrading.com/1.0/tops/last?symbols=%s",GetArg("-ac_stocks","").c_str()); if ( (json= send_curl(url,(char *)"iex")) != 0 ) //if ( (json= get_urljson(url)) != 0 ) { @@ -2026,9 +2026,9 @@ int32_t get_stockprices(uint32_t now,uint32_t *prices,std::vector s for (i=0; i now+60 || timestamp < now-ASSETCHAINS_BLOCKTIME )