|
|
@ -825,7 +825,7 @@ int32_t LP_tradecommand(void *ctx,char *myipaddr,int32_t pubsock,cJSON *argjson, |
|
|
|
r = (rand() % 100); |
|
|
|
range = (qprice - price); |
|
|
|
printf(">>>>>>>>>>>>> price %.8f qprice %.8f r.%d range %.8f -> %.8f vs bestprice %.8f\n",price,qprice,r,range,price + r*range,LP_bob_competition(aliceid,price)); |
|
|
|
price += (r * range); |
|
|
|
price += (r * range) / 100.; |
|
|
|
bestprice = LP_bob_competition(aliceid,price); |
|
|
|
if ( price < bestprice+SMALLVAL ) |
|
|
|
return(retval); |
|
|
|