|
@ -547,8 +547,8 @@ void LP_autoprice_iter(void *ctx,struct LP_priceinfo *btcpp) |
|
|
else LP_autorefs[i].lastbid = (LP_autorefs[i].lastbid * 0.9) + (0.1 *newprice); |
|
|
else LP_autorefs[i].lastbid = (LP_autorefs[i].lastbid * 0.9) + (0.1 *newprice); |
|
|
newprice = LP_autorefs[i].lastbid; |
|
|
newprice = LP_autorefs[i].lastbid; |
|
|
if ( LP_autorefs[i].lastask < SMALLVAL || LP_autorefs[i].lastask > LP_autorefs[i].lastbid ) |
|
|
if ( LP_autorefs[i].lastask < SMALLVAL || LP_autorefs[i].lastask > LP_autorefs[i].lastbid ) |
|
|
newprice = LP_autorefs[i].lastask; |
|
|
newprice = LP_autorefs[i].lastbid; |
|
|
else newprice = LP_autorefs[i].lastask * (1. - buymargin); |
|
|
else newprice = LP_autorefs[i].lastbid = LP_autorefs[i].lastask * (1. - buymargin); |
|
|
LP_mypriceset(&changed,rel,base,newprice); |
|
|
LP_mypriceset(&changed,rel,base,newprice); |
|
|
LP_pricepings(ctx,LP_myipaddr,LP_mypubsock,rel,base,newprice); |
|
|
LP_pricepings(ctx,LP_myipaddr,LP_mypubsock,rel,base,newprice); |
|
|
//printf("fundbid %.8f margin %.8f newprice %.8f\n",price,buymargin,newprice);
|
|
|
//printf("fundbid %.8f margin %.8f newprice %.8f\n",price,buymargin,newprice);
|
|
|