Browse Source

Test

etomic
jl777 7 years ago
parent
commit
836a2ce6ba
  1. 6
      iguana/exchanges/LP_portfolio.c

6
iguana/exchanges/LP_portfolio.c

@ -242,8 +242,8 @@ int32_t LP_autoprice(char *base,char *rel,cJSON *argjson)
{
if ( fixedprice > SMALLVAL )
{
refbase = rel;
refrel = base;
refbase = base;
refrel = rel;
}
for (i=0; i<num_LP_autorefs; i++)
{
@ -287,7 +287,7 @@ void LP_autopriceset(void *ctx,int32_t dir,struct LP_priceinfo *basepp,struct LP
else if ( (fixedprice= basepp->fixedprices[relpp->ind]) > SMALLVAL )
{
LP_mypriceset(&changed,basepp->symbol,relpp->symbol,fixedprice);
printf("autoprice FIXED %s/%s <- %.8f\n",basepp->symbol,relpp->symbol,fixedprice);
printf("autoprice FIXED2 %s/%s <- %.8f\n",basepp->symbol,relpp->symbol,fixedprice);
LP_pricepings(ctx,LP_myipaddr,LP_mypubsock,basepp->symbol,relpp->symbol,fixedprice);
return;
}

Loading…
Cancel
Save