Browse Source

Test

etomic
jl777 8 years ago
parent
commit
c82413cf68
  1. 2
      iguana/exchanges/LP_commands.c
  2. 8
      iguana/exchanges/mm.c

2
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) )

8
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");

Loading…
Cancel
Save