|
|
@ -279,7 +279,7 @@ cJSON *LP_autotrade(struct LP_utxoinfo *myutxo,char *base,double maxprice) |
|
|
|
bestprice = 0.; |
|
|
|
if ( maxprice == 0. ) |
|
|
|
maxprice = LP_price(base,myutxo->coin) / 0.975; |
|
|
|
if ( (array= LP_tradecandidates(myutxo,base)) != 0 ) |
|
|
|
if ( (array= LP_tradecandidates(base)) != 0 ) |
|
|
|
{ |
|
|
|
//printf("candidates.(%s)\nn.%d\n",jprint(array,0),cJSON_GetArraySize(array));
|
|
|
|
if ( (n= cJSON_GetArraySize(array)) > 0 ) |
|
|
|