|
|
@ -481,7 +481,7 @@ void LP_autoprice_iter(void *ctx,struct LP_priceinfo *btcpp) |
|
|
|
relpp = LP_priceinfofind(LP_autorefs[i].rel); |
|
|
|
if ( basepp != 0 && relpp != 0 ) |
|
|
|
{ |
|
|
|
printf("check ref-autoprice %s/%s %f %f\n",LP_autorefs[i].refbase,LP_autorefs[i].refrel,relpp->fixedprices[basepp->ind],basepp->fixedprices[relpp->ind]); |
|
|
|
//printf("check ref-autoprice %s/%s %f %f\n",LP_autorefs[i].refbase,LP_autorefs[i].refrel,relpp->fixedprices[basepp->ind],basepp->fixedprices[relpp->ind]);
|
|
|
|
LP_autopriceset(ctx,1,basepp,relpp,0.,LP_autorefs[i].refbase,LP_autorefs[i].refrel); |
|
|
|
} |
|
|
|
} |
|
|
@ -608,7 +608,7 @@ void prices_loop(void *ctx) |
|
|
|
prices_loop_stats.threshold = 91000.; |
|
|
|
while ( 1 ) |
|
|
|
{ |
|
|
|
printf("prices loop autoprices.%d autorefs.%d\n",LP_autoprices,num_LP_autorefs); |
|
|
|
//printf("prices loop autoprices.%d autorefs.%d\n",LP_autoprices,num_LP_autorefs);
|
|
|
|
LP_millistats_update(&prices_loop_stats); |
|
|
|
LP_tradebots_timeslice(ctx); |
|
|
|
if ( (btcpp= LP_priceinfofind("BTC")) == 0 ) |
|
|
|