Browse Source

Test

etomic
jl777 7 years ago
parent
commit
2dc9319967
  1. 2
      iguana/exchanges/LP_utxos.c
  2. 16
      iguana/exchanges/mm.c

2
iguana/exchanges/LP_utxos.c

@ -477,7 +477,7 @@ void LP_privkey_updates(struct LP_peerinfo *mypeer,int32_t pubsock,char *passphr
int32_t i;
for (i=0; i<LP_numcoins; i++)
{
//printf("i.%d of %d\n",i,(int32_t)(sizeof(activecoins)/sizeof(*activecoins)));
printf("i.%d of %d\n",i,LP_numcoins);
LP_privkey_init(mypeer,pubsock,LP_coins[i].symbol,passphrase,"",amclient);
}
}

16
iguana/exchanges/mm.c

@ -830,22 +830,6 @@ int main(int argc, const char * argv[])
exit(-1);
} else printf("(%s) launched.(%s)\n",argv[1],passphrase);
incr = 100.;
/*while ( (0) && IAMCLIENT != 0 )
{
theoretical = marketmaker_updateprice("komodo","REVS","KMD",theoretical,&incr);
sleep(3);
LP_privkey_updates(0,-1,passphrase,1);
if ( jint(retjson,"client") != 0 )
{
struct LP_utxoinfo *utxo,*utmp;
HASH_ITER(hh,LP_utxoinfos,utxo,utmp)
{
if ( strcmp(utxo->coin,"REVS") == 0 && (matchjson= LP_autotrade(utxo,"KMD",0.)) != 0 )
printf("bestprice (%s)\n",jprint(matchjson,1));
}
}
sleep(1000);
}*/
while ( 1 )
sleep(1);
profitmargin = jdouble(retjson,"profitmargin");

Loading…
Cancel
Save