Browse Source

Test

etomic
jl777 7 years ago
parent
commit
5e31422486
  1. 3
      iguana/exchanges/LP_nativeDEX.c
  2. 4
      iguana/exchanges/LP_portfolio.c

3
iguana/exchanges/LP_nativeDEX.c

@ -17,7 +17,8 @@
// LP_nativeDEX.c // LP_nativeDEX.c
// marketmaker // marketmaker
// //
// fundvalue -> autoprice, signals -> autoprice // signals -> autoprice
// passphrase for deposits
// https://github.com/bitcoin/bips/blob/master/bip-0143.mediawiki for signing BCH/BTG // https://github.com/bitcoin/bips/blob/master/bip-0143.mediawiki for signing BCH/BTG
// //
// compress packets // compress packets

4
iguana/exchanges/LP_portfolio.c

@ -447,14 +447,14 @@ void LP_autoprice_iter(void *ctx,struct LP_priceinfo *btcpp)
newprice = (1. / price) * (1. + margin); newprice = (1. / price) * (1. + margin);
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,margin,newprice); //printf("fundbid %.8f margin %.8f newprice %.8f\n",price,margin,newprice);
} }
if ( LP_autorefs[i].fundask[0] != 0 && (price= jdouble(fundjson,LP_autorefs[i].fundask)) > SMALLVAL ) if ( LP_autorefs[i].fundask[0] != 0 && (price= jdouble(fundjson,LP_autorefs[i].fundask)) > SMALLVAL )
{ {
newprice = (price * (1. + margin)); newprice = (price * (1. + margin));
LP_mypriceset(&changed,base,rel,newprice); LP_mypriceset(&changed,base,rel,newprice);
LP_pricepings(ctx,LP_myipaddr,LP_mypubsock,base,rel,newprice); LP_pricepings(ctx,LP_myipaddr,LP_mypubsock,base,rel,newprice);
printf("fundask %.8f margin %.8f newprice %.8f\n",price,margin,newprice); //printf("fundask %.8f margin %.8f newprice %.8f\n",price,margin,newprice);
} }
} }
free_json(fundjson); free_json(fundjson);

Loading…
Cancel
Save