From 075b55bf6383432989bd6e755bd0c71704eabe6e Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 1 Nov 2017 12:38:53 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_tradebots.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iguana/exchanges/LP_tradebots.c b/iguana/exchanges/LP_tradebots.c index c22a2db50..7b6b6d442 100644 --- a/iguana/exchanges/LP_tradebots.c +++ b/iguana/exchanges/LP_tradebots.c @@ -303,6 +303,7 @@ char *LP_tradebot_list(void *ctx,int32_t pubsock,cJSON *argjson) char *LP_tradebot_buy(int32_t dispdir,char *base,char *rel,double maxprice,double relvolume) { struct LP_tradebot *bot; + printf("disp.%d tradebot_buy(%s / %s) maxprice %.8f relvolume %.8f\n",dispdir,base,rel,maxprice,relvolume); if ( (bot= calloc(1,sizeof(*bot))) != 0 ) { safecopy(bot->base,base,sizeof(bot->base)); @@ -428,6 +429,7 @@ char *LP_tradebot_resume(void *ctx,int32_t pubsock,cJSON *argjson,uint32_t botid char *LP_istradebots_command(void *ctx,int32_t pubsock,char *method,cJSON *argjson) { uint32_t botid; + printf("istradebots.(%s)\n",method); if ( strcmp(method,"bot_list") == 0 ) return(LP_tradebot_list(ctx,pubsock,argjson)); else if ( strcmp(method,"bot_buy") == 0 ) @@ -449,6 +451,7 @@ char *LP_istradebots_command(void *ctx,int32_t pubsock,char *method,cJSON *argjs else if ( strcmp(method,"bot_resume") == 0 ) return(LP_tradebot_resume(ctx,pubsock,argjson,botid)); } + printf("not tradebots\n"); return(0); }