diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 0bd1476fd..dd9f9a6a7 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -2014,10 +2014,10 @@ cJSON *get_urljson(char *url) return(json); } -uint32_t get_stockprices()//std::vector symbols) +int32_t get_stockprices()//std::vector symbols) { std::vector symbols; - char url[32768],*symbol; cJSON *json,*obj; int32_t i,n; uint32_t uprice; + char url[32768],*symbol; cJSON *json,*obj; int32_t i,n=0; uint32_t uprice; symbols.push_back("AAPL"); symbols.push_back("MSFT"); sprintf(url,"https://api.iextrading.com/1.0/tops/last?symbols=AAPL, MSFT"); @@ -2041,7 +2041,7 @@ uint32_t get_stockprices()//std::vector symbols) //https://api.iextrading.com/1.0/tops/last?symbols=AAPL -> [{"symbol":"AAPL","price":198.63,"size":100,"time":1555092606076}] free_json(json); } - return(price); + return(n); } uint32_t get_dailyfx(uint32_t *prices)