Browse Source

Test

etomic
jl777 7 years ago
parent
commit
e0d818f0c8
  1. 2
      iguana/exchanges/LP_ordermatch.c
  2. 4
      iguana/exchanges/LP_portfolio.c

2
iguana/exchanges/LP_ordermatch.c

@ -801,7 +801,7 @@ int32_t LP_quotecmp(struct LP_quoteinfo *qp,struct LP_quoteinfo *qp2)
void LP_reserved(void *ctx,char *myipaddr,int32_t mypubsock,struct LP_quoteinfo *qp)
{
double price,maxprice = LP_Alicemaxprice;
if ( time(NULL) > qp->timestamp+Alice_timeout )
if ( 0 && time(NULL) > qp->timestamp+Alice_timeout )
{
printf("time expired for Alice_request\n");
memset(&LP_Alicequery,0,sizeof(LP_Alicequery));

4
iguana/exchanges/LP_portfolio.c

@ -292,11 +292,11 @@ void LP_autopriceset(void *ctx,int32_t dir,struct LP_priceinfo *basepp,struct LP
// price = 1. / (price * (1. - margin));
//else price = (price * (1. - margin));
newprice = (price * (1. - margin));
newprice = 1. / (price * (1. - margin));
if ( (minprice= basepp->minprices[relpp->ind]) == 0. || price >= minprice )
{
LP_mypriceset(&changed,relpp->symbol,basepp->symbol,newprice);
printf("changed.%d %s/%s <- %.8f\n",changed,relpp->symbol,basepp->symbol,newprice);
printf("changed.%d %s/%s <- %.8f\n",changed,basepp->symbol,relpp->symbol,price);
if ( changed != 0 )
LP_pricepings(ctx,LP_myipaddr,LP_mypubsock,relpp->symbol,basepp->symbol,newprice);
}

Loading…
Cancel
Save