Use files

This commit is contained in:
jl777
2019-04-12 07:08:57 -11:00
parent b575d3ac5a
commit f0dd1cf6cf

View File

@@ -2018,7 +2018,7 @@ uint32_t get_stockprices()//std::vector<std::string> symbols)
{
char url[32768]; cJSON *json,*obj; uint32_t high,low,price = 0;
sprintf(url,"https://api.iextrading.com/1.0/tops/last?symbols=AAPL");
if ( (json= get_urljson(url)) != 0 )
if ( (json= send_curl(url,(char *)"iex")) != 0 ) //if ( (json= get_urljson(url)) != 0 )
{
fprintf(stderr,"%s -> %s\n",url,jprint(json,0));
free_json(json);