From eeced2dda473b1d03f2ea93b7583f04c2046b02c Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 13 Mar 2018 01:46:20 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_prices.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/iguana/exchanges/LP_prices.c b/iguana/exchanges/LP_prices.c index 5c3e0d161..56ad84514 100644 --- a/iguana/exchanges/LP_prices.c +++ b/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);