jl777 7 years ago
parent
commit
5d54e675e7
  1. 1
      iguana/exchanges/LP_ordermatch.c
  2. 5
      iguana/exchanges/LP_prices.c

1
iguana/exchanges/LP_ordermatch.c

@ -1509,7 +1509,6 @@ char *LP_autobuy(void *ctx,int32_t fomoflag,char *myipaddr,int32_t mypubsock,cha
printf("maxutxo %.8f relvolume %.8f desttxfee %.8f\n",dstr(maxutxo),relvolume,dstr(desttxfee));
maxprice = LP_fomoprice(base,rel,&relvolume);
printf("fomoprice %.8f relvolume %.8f\n",maxprice,relvolume);
maxprice = 0.;
} else printf("no utxo available\n");
}
if ( maxprice <= 0. || relvolume <= 0. || LP_priceinfofind(base) == 0 || LP_priceinfofind(rel) == 0 )

5
iguana/exchanges/LP_prices.c

@ -996,10 +996,11 @@ double LP_fomoprice(char *base,char *rel,double *relvolumep)
}
free(retstr);
}
if ( maxvol > 0. && maxvol < relvolume && fomoprice > 0. )
if ( maxvol > 0. && fomoprice > 0. )
{
if ( maxvol < relvolume )
relvolume = maxvol * 0.98;
fomoprice /= 0.99;
fomoprice /= 0.95;
} else fomoprice = 0.;
*relvolumep = relvolume;
return(fomoprice);

Loading…
Cancel
Save