diff --git a/iguana/exchanges/LP_portfolio.c b/iguana/exchanges/LP_portfolio.c index 27cac5e8e..57d93f613 100644 --- a/iguana/exchanges/LP_portfolio.c +++ b/iguana/exchanges/LP_portfolio.c @@ -677,7 +677,7 @@ int32_t LP_autoprice(void *ctx,char *base,char *rel,cJSON *argjson) refrel = jstr(argjson,"refrel"); fundvalue_bid = jstr(argjson,"fundvalue_bid"); fundvalue_ask = jstr(argjson,"fundvalue_ask"); - if ( fundvalue_bid != 0 || fundvalue_ask != 0 || fixedprice > SMALLVAL || (refbase != 0 && refrel != 0) ) + if ( fundvalue_bid != 0 || fundvalue_ask != 0 || fixedprice > SMALLVAL || (refbase != 0 && refrel != 0 && strlen(refbase) > 0 && strlen(refrel) > 0) ) { if ( fixedprice > SMALLVAL ) {