jl777 7 years ago
parent
commit
eeced2dda4
  1. 5
      iguana/exchanges/LP_prices.c

5
iguana/exchanges/LP_prices.c

@ -644,6 +644,11 @@ struct LP_priceinfo *LP_priceinfoadd(char *symbol)
struct LP_priceinfo *pp; cJSON *retjson;
if ( symbol == 0 )
return(0);
if ( (pp= LP_priceinfofind(symbol)) != 0 )
{
printf("%s already there\n",symbol);
return(pp);
}
if ( LP_numpriceinfos >= sizeof(LP_priceinfos)/sizeof(*LP_priceinfos) )
{
printf("cant add any more priceinfos than %d\n",LP_numpriceinfos);

Loading…
Cancel
Save