|
@ -830,22 +830,6 @@ int main(int argc, const char * argv[]) |
|
|
exit(-1); |
|
|
exit(-1); |
|
|
} else printf("(%s) launched.(%s)\n",argv[1],passphrase); |
|
|
} else printf("(%s) launched.(%s)\n",argv[1],passphrase); |
|
|
incr = 100.; |
|
|
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 ) |
|
|
while ( 1 ) |
|
|
sleep(1); |
|
|
sleep(1); |
|
|
profitmargin = jdouble(retjson,"profitmargin"); |
|
|
profitmargin = jdouble(retjson,"profitmargin"); |
|
|