Browse Source

Test

etomic
jl777 8 years ago
parent
commit
809c598318
  1. 4
      iguana/exchanges/LP_prices.c

4
iguana/exchanges/LP_prices.c

@ -144,8 +144,8 @@ int32_t LP_mypriceset(char *base,char *rel,double price)
struct LP_priceinfo *basepp,*relpp; struct LP_priceinfo *basepp,*relpp;
if ( price != 0. && (basepp= LP_priceinfofind(base)) != 0 && (relpp= LP_priceinfofind(rel)) != 0 ) if ( price != 0. && (basepp= LP_priceinfofind(base)) != 0 && (relpp= LP_priceinfofind(rel)) != 0 )
{ {
basepp->myprices[relpp->ind] = price * LP_profitratio; // ask basepp->myprices[relpp->ind] = price; // ask
relpp->myprices[basepp->ind] = (1. / price) * LP_profitratio; // bid relpp->myprices[basepp->ind] = (1. / price); // bid
return(0); return(0);
} else return(-1); } else return(-1);
} }

Loading…
Cancel
Save