From b53cfbad57cd232fbf138ae0f04df7148c20043e Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 5 Jan 2017 23:23:02 +0200 Subject: [PATCH] test --- basilisk/tradebots_liquidity.c | 7 +++++++ iguana/m_LP | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/basilisk/tradebots_liquidity.c b/basilisk/tradebots_liquidity.c index 650190067..df11fabb8 100755 --- a/basilisk/tradebots_liquidity.c +++ b/basilisk/tradebots_liquidity.c @@ -451,7 +451,10 @@ double set_ocas_model(int refc,int answerind,double *W,double W0,int numfeatures { return(0.); } + +#ifndef _WIN #include "tradebots_SVM.h" +#endif static char *assetids[][2] = { @@ -951,6 +954,9 @@ void tradebots_processprices(struct supernet_info *myinfo,struct exchange_info * TWO_STRINGS(tradebots,gensvm,base,rel) { +#ifdef _WIN + return(clonestr("{\"error\":\"windows doesnt support SVM\"}")); +#else int32_t numfeatures = 532; struct tradebot_arbpair *pair; if ( base[0] != 0 && rel[0] != 0 && (pair= tradebots_arbpair_find(base,rel)) != 0 && pair->fp != 0 ) { @@ -958,6 +964,7 @@ TWO_STRINGS(tradebots,gensvm,base,rel) ocas_gen(pair->refc,numfeatures,0,(int32_t)(ftell(pair->fp) / sizeof(pair->rawfeatures))); return(clonestr("{\"result\":\"success\"}")); } else return(clonestr("{\"error\":\"cant find arbpair\"}")); +#endif } #include "../includes/iguana_apiundefs.h" diff --git a/iguana/m_LP b/iguana/m_LP index 290693f08..d09ee9373 100755 --- a/iguana/m_LP +++ b/iguana/m_LP @@ -4,6 +4,6 @@ rm -f ../agents/iguana *.o git pull cd secp256k1; ./m_unix; cd .. cd ../crypto777; ./m_LP; cd ../iguana -clang -g -fno-aggressive-loop-optimizations -Wno-deprecated -c -O2 -DLIQUIDITY_PROVIDER=1 *.c ../basilisk/basilisk.c ../gecko/gecko.c ../datachain/datachain.c -clang -g -fno-aggressive-loop-optimizations -Wno-deprecated -c -DLIQUIDITY_PROVIDER=1 main.c iguana777.c iguana_bundles.c ../basilisk/basilisk.c +clang -g -Wno-deprecated -c -O2 -DLIQUIDITY_PROVIDER=1 *.c ../basilisk/basilisk.c ../gecko/gecko.c ../datachain/datachain.c +clang -g -Wno-deprecated -c -DLIQUIDITY_PROVIDER=1 main.c iguana777.c iguana_bundles.c ../basilisk/basilisk.c clang -g -o ../agents/iguana *.o ../agents/libcrypto777.a /usr/local/lib/libnanomsg.so -lcurl -lssl -lcrypto -lpthread -lz -lm