From c82413cf688313bfa6c8934d212988fc95d5d226 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 6 Jun 2017 19:27:45 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_commands.c | 2 +- iguana/exchanges/mm.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index 621c7544b..ddfbdc85c 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -256,7 +256,7 @@ char *stats_JSON(cJSON *argjson,char *remoteaddr,uint16_t port) // from rpc port { if ( strcmp(method,"inventory") == 0 ) { - LP_privkey_init(0,-1,coin,0,USERPASS_WIFSTR,1); + //LP_privkey_init(0,-1,coin,0,USERPASS_WIFSTR,1); return(LP_inventory(coin)); } else if ( IAMCLIENT != 0 && (strcmp(method,"candidates") == 0 || strcmp(method,"autotrade") == 0) ) diff --git a/iguana/exchanges/mm.c b/iguana/exchanges/mm.c index 080fb7325..638acc5e8 100644 --- a/iguana/exchanges/mm.c +++ b/iguana/exchanges/mm.c @@ -818,8 +818,8 @@ void LP_main(void *ptr) int main(int argc, const char * argv[]) { char *base,*rel,*name,*exchange,*apikey,*apisecret,*blocktrail,*retstr,*baseaddr,*reladdr,*passphrase; - double profitmargin,maxexposure,incrratio,start_rel,start_base,minask,maxbid,incr,theoretical = 0.; - cJSON *retjson,*loginjson,*matchjson; int32_t i; + double profitmargin,maxexposure,incrratio,start_rel,start_base,minask,maxbid,incr; + cJSON *retjson,*loginjson; int32_t i; if ( argc > 1 && (retjson= cJSON_Parse(argv[1])) != 0 ) { if ( (passphrase= jstr(retjson,"passphrase")) == 0 ) @@ -830,7 +830,7 @@ int main(int argc, const char * argv[]) exit(-1); } else printf("(%s) launched.(%s)\n",argv[1],passphrase); incr = 100.; - while ( (0) && IAMCLIENT != 0 ) + /*while ( (0) && IAMCLIENT != 0 ) { theoretical = marketmaker_updateprice("komodo","REVS","KMD",theoretical,&incr); sleep(3); @@ -845,7 +845,7 @@ int main(int argc, const char * argv[]) } } sleep(1000); - } + }*/ while ( 1 ) sleep(1); profitmargin = jdouble(retjson,"profitmargin");