Browse Source

test

etomic
jl777 8 years ago
parent
commit
cd9b3e1312
  1. 2
      basilisk/basilisk.c
  2. 2
      basilisk/basilisk.h
  3. 2
      basilisk/basilisk_CMD.c
  4. 2
      basilisk/basilisk_DEX.c
  5. 2
      basilisk/basilisk_MSG.c
  6. 2
      basilisk/basilisk_bitcoin.c
  7. 2
      basilisk/basilisk_ping.c
  8. 2
      basilisk/basilisk_swap.c
  9. 2
      basilisk/basilisk_tradebot.c
  10. 1271
      basilisk/tradebots_SVM.h
  11. 132
      basilisk/tradebots_liquidity.c
  12. 2
      crypto777/OS_nonportable.c
  13. 2
      crypto777/OS_portable.c
  14. 2
      crypto777/OS_portable.h
  15. 2
      crypto777/OS_time.c
  16. 2
      crypto777/SaM.c
  17. 2
      crypto777/bitcoind_RPC.c
  18. 2
      crypto777/cJSON.c
  19. 2
      crypto777/curve25519.c
  20. 2
      crypto777/iguana_OS.c
  21. 2
      crypto777/iguana_serdes.c
  22. 2
      crypto777/iguana_utils.c
  23. 2
      crypto777/ramcoder.c
  24. 2
      datachain/datachain.c
  25. 2
      deprecated/iguana_instantdex.c
  26. 2
      gecko/gecko.c
  27. 2
      iguana/SuperNET_keys.c
  28. 2
      iguana/dPoW.h
  29. 2
      iguana/dpow/dpow_fsm.c
  30. 2
      iguana/dpow/dpow_network.c
  31. 2
      iguana/dpow/dpow_prices.c
  32. 2
      iguana/dpow/dpow_rpc.c
  33. 2
      iguana/dpow/dpow_tx.c
  34. 2
      iguana/exchanges/bitcoin.c
  35. 2
      iguana/exchanges/bitcoin.h
  36. 2
      iguana/exchanges/bitfinex.c
  37. 2
      iguana/exchanges/bitstamp.c
  38. 2
      iguana/exchanges/bittrex.c
  39. 2
      iguana/exchanges/btc38.c
  40. 2
      iguana/exchanges/btce.c
  41. 2
      iguana/exchanges/coinbase.c
  42. 2
      iguana/exchanges/exchange_supports.h
  43. 2
      iguana/exchanges/exchange_undefs.h
  44. 2
      iguana/exchanges/fxcm.c
  45. 2
      iguana/exchanges/huobi.c
  46. 2
      iguana/exchanges/instaforex.c
  47. 2
      iguana/exchanges/jumblr.c
  48. 2
      iguana/exchanges/lakebtc.c
  49. 2
      iguana/exchanges/nxtae.c
  50. 2
      iguana/exchanges/okcoin.c
  51. 2
      iguana/exchanges/poloniex.c
  52. 2
      iguana/exchanges/quadriga.c
  53. 2
      iguana/exchanges/truefx.c
  54. 2
      iguana/exchanges/unconf.c
  55. 2
      iguana/exchanges777.h
  56. 2
      iguana/iguana777.c
  57. 2
      iguana/iguana777.h
  58. 2
      iguana/iguana_accept.c
  59. 2
      iguana/iguana_bitmap.c
  60. 2
      iguana/iguana_blocks.c
  61. 2
      iguana/iguana_bundles.c
  62. 2
      iguana/iguana_chains.c
  63. 2
      iguana/iguana_exchanges.c
  64. 2
      iguana/iguana_init.c
  65. 2
      iguana/iguana_interpreter.c
  66. 2
      iguana/iguana_json.c
  67. 2
      iguana/iguana_mofn.c
  68. 2
      iguana/iguana_msg.c
  69. 2
      iguana/iguana_notary.c
  70. 2
      iguana/iguana_payments.c
  71. 2
      iguana/iguana_peers.c
  72. 2
      iguana/iguana_ramchain.c
  73. 2
      iguana/iguana_realtime.c
  74. 2
      iguana/iguana_recv.c
  75. 2
      iguana/iguana_rpc.c
  76. 2
      iguana/iguana_scripts.c
  77. 2
      iguana/iguana_secp.c
  78. 2
      iguana/iguana_sign.c
  79. 2
      iguana/iguana_spendvectors.c
  80. 2
      iguana/iguana_tradebots.c
  81. 2
      iguana/iguana_tx.c
  82. 2
      iguana/iguana_txidfind.c
  83. 2
      iguana/iguana_unspents.c
  84. 2
      iguana/iguana_volatiles.c
  85. 2
      iguana/iguana_wallet.c
  86. 2
      iguana/main.c
  87. 2
      iguana/ramchain_api.c
  88. 3
      includes/iguana_apideclares.h
  89. 2
      includes/iguana_defines.h
  90. 2
      includes/iguana_funcs.h
  91. 2
      includes/iguana_globals.h
  92. 2
      includes/iguana_structs.h
  93. 2
      includes/iguana_types.h

2
basilisk/basilisk.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
basilisk/basilisk.h

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
basilisk/basilisk_CMD.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
basilisk/basilisk_DEX.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
basilisk/basilisk_MSG.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
basilisk/basilisk_bitcoin.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
basilisk/basilisk_ping.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
basilisk/basilisk_swap.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
basilisk/basilisk_tradebot.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

1271
basilisk/tradebots_SVM.h

File diff suppressed because it is too large

132
basilisk/tradebots_liquidity.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *
@ -26,6 +26,9 @@
#define TRADEBOTS_RAWFEATURESINCR 7 #define TRADEBOTS_RAWFEATURESINCR 7
#define TRADEBOTS_MAXPAIRS 1024 #define TRADEBOTS_MAXPAIRS 1024
#define _OCAS_PLUS_INF (-log(0.0))
double OCAS_PLUS_INF,OCAS_NEG_INF;
double Tradebots_decays[TRADEBOTS_NUMDECAYS] = { 0.5, 0.666, 0.8, 0.9, 0.95, 0.99, 0.995, 0.999 }; double Tradebots_decays[TRADEBOTS_NUMDECAYS] = { 0.5, 0.666, 0.8, 0.9, 0.95, 0.99, 0.995, 0.999 };
int32_t Tradebots_answergaps[TRADEBOTS_NUMANSWERS] = { 5, 10, 15, 20, 30, 60, 120, 720 }; int32_t Tradebots_answergaps[TRADEBOTS_NUMANSWERS] = { 5, 10, 15, 20, 30, 60, 120, 720 };
@ -46,7 +49,7 @@ struct tradebot_arbpair
{ {
char base[32],rel[32]; char base[32],rel[32];
uint32_t lasttime,lastanswertime; FILE *fp; uint32_t lasttime,lastanswertime; FILE *fp;
int32_t numexchanges,counter,btccounter,usdcounter,cnycounter; int32_t numexchanges,counter,btccounter,usdcounter,cnycounter,refc;
double highbid,lowask,hblavolume,btcbid,btcask,btcvol,usdbid,usdask,usdvol,cnybid,cnyask,cnyvol; double highbid,lowask,hblavolume,btcbid,btcask,btcvol,usdbid,usdask,usdvol,cnybid,cnyask,cnyvol;
double bidaves[TRADEBOTS_NUMDECAYS],askaves[TRADEBOTS_NUMDECAYS]; double bidaves[TRADEBOTS_NUMDECAYS],askaves[TRADEBOTS_NUMDECAYS];
double bidslopes[TRADEBOTS_NUMDECAYS],askslopes[TRADEBOTS_NUMDECAYS]; double bidslopes[TRADEBOTS_NUMDECAYS],askslopes[TRADEBOTS_NUMDECAYS];
@ -60,7 +63,7 @@ struct tradebot_arbpair
struct tradebot_arbpair Arbpairs[TRADEBOTS_MAXPAIRS],*Pair_NXTBTC,*Pair_BTCUSD,*Pair_BTCCNY; struct tradebot_arbpair Arbpairs[TRADEBOTS_MAXPAIRS],*Pair_NXTBTC,*Pair_BTCUSD,*Pair_BTCCNY;
int32_t Tradebot_numarbpairs; int32_t Tradebot_numarbpairs;
struct tradebot_arbpair *tradebot_arbpair_find(char *base,char *rel) struct tradebot_arbpair *tradebots_arbpair_find(char *base,char *rel)
{ {
int32_t i; int32_t i;
for (i=0; i<Tradebot_numarbpairs; i++) for (i=0; i<Tradebot_numarbpairs; i++)
@ -134,13 +137,14 @@ uint32_t tradebots_featureset(double *highbidp,double *lowaskp,double *avep,doub
return(timestamp); return(timestamp);
} }
struct tradebot_arbpair *tradebot_arbpair_create(char *base,char *rel) struct tradebot_arbpair *tradebots_arbpair_create(char *base,char *rel)
{ {
struct tradebot_arbpair *pair; char fname[1024]; double ave; struct tradebot_arbpair *pair; char fname[1024]; double ave;
if ( Tradebot_numarbpairs < sizeof(Arbpairs)/sizeof(*Arbpairs) ) if ( Tradebot_numarbpairs < sizeof(Arbpairs)/sizeof(*Arbpairs) )
{ {
printf("new pair.%d (%s/%s)\n",Tradebot_numarbpairs,base,rel); printf("new pair.%d (%s/%s)\n",Tradebot_numarbpairs,base,rel);
pair = &Arbpairs[Tradebot_numarbpairs++]; pair = &Arbpairs[Tradebot_numarbpairs];
pair->refc = Tradebot_numarbpairs++;
strcpy(pair->rel,rel); strcpy(pair->rel,rel);
strcpy(pair->base,base); strcpy(pair->base,base);
if ( strcmp(base,"NXT") == 0 && strcmp(rel,"BTC") == 0 ) if ( strcmp(base,"NXT") == 0 && strcmp(rel,"BTC") == 0 )
@ -240,20 +244,20 @@ int32_t tradebots_expandrawfeatures(double *svmfeatures,float *rawfeatures,uint3
return(n); return(n);
} }
int32_t tradebots_calcsvmfeatures(double *svmfeatures,struct tradebot_arbpair *pair) int32_t tradebots_calcsvmfeatures(double *svmfeatures,struct tradebot_arbpair *pair,float *rawfeatures,float *prevrawfeatures)
{ {
int32_t i,j,n,numpairfeatures,flag; struct tradebot_arbpair *ptr; uint32_t reftimestamp; int32_t i,j,n,numpairfeatures,flag; struct tradebot_arbpair *ptr; uint32_t reftimestamp;
memcpy(&reftimestamp,pair->rawfeatures,sizeof(reftimestamp)); memcpy(&reftimestamp,rawfeatures,sizeof(reftimestamp));
if ( reftimestamp == 0 ) if ( reftimestamp == 0 )
return(-1); return(-1);
numpairfeatures = n = tradebots_expandrawfeatures(svmfeatures,pair->rawfeatures,reftimestamp,pair->prevrawfeatures); numpairfeatures = n = tradebots_expandrawfeatures(svmfeatures,rawfeatures,reftimestamp,prevrawfeatures);
if ( pair->numsvmfeatures != (1+pair->numpairs)*n ) if ( 0 && pair->numsvmfeatures != (1+pair->numpairs)*n )
{ {
for (i=0; i<pair->numpairs; i++) for (i=0; i<pair->numpairs; i++) // need to do lookups
{ {
flag = -1; flag = -1;
if ( (ptr= tradebot_arbpair_find(pair->svmpairs[i][0],pair->svmpairs[i][1])) != 0 ) if ( (ptr= tradebots_arbpair_find(pair->svmpairs[i][0],pair->svmpairs[i][1])) != 0 )
flag = tradebots_expandrawfeatures(&svmfeatures[n],ptr->rawfeatures,reftimestamp,pair->rawfeatures); flag = tradebots_expandrawfeatures(&svmfeatures[n],ptr->rawfeatures,reftimestamp,rawfeatures);
if ( flag < 0 ) if ( flag < 0 )
{ {
for (j=0; j<numpairfeatures; j++) for (j=0; j<numpairfeatures; j++)
@ -261,11 +265,6 @@ int32_t tradebots_calcsvmfeatures(double *svmfeatures,struct tradebot_arbpair *p
} else n += flag; } else n += flag;
} }
} }
if ( n != pair->numsvmfeatures )
{
printf("unexpected numsvmfeatures %d vs %d\n",n,pair->numsvmfeatures);
return(-1);
}
return(n); return(n);
} }
@ -287,6 +286,7 @@ void tradebots_calcanswers(struct tradebot_arbpair *pair)
double highbid,lowask,futurebid,futureask,ave,vol,bidaves[TRADEBOTS_NUMDECAYS],askaves[TRADEBOTS_NUMDECAYS],bidslopes[TRADEBOTS_NUMDECAYS],askslopes[TRADEBOTS_NUMDECAYS]; double highbid,lowask,futurebid,futureask,ave,vol,bidaves[TRADEBOTS_NUMDECAYS],askaves[TRADEBOTS_NUMDECAYS],bidslopes[TRADEBOTS_NUMDECAYS],askslopes[TRADEBOTS_NUMDECAYS];
float rawfeatures[sizeof(pair->rawfeatures)/sizeof(*pair->rawfeatures)],futuremin,futuremax,minval,maxval,*hblas = 0; float rawfeatures[sizeof(pair->rawfeatures)/sizeof(*pair->rawfeatures)],futuremin,futuremax,minval,maxval,*hblas = 0;
uint32_t timestamp,firsttime = 0; long fpos,savepos; int32_t flag,i,iter,j,ind,maxi; uint32_t timestamp,firsttime = 0; long fpos,savepos; int32_t flag,i,iter,j,ind,maxi;
OCAS_PLUS_INF = _OCAS_PLUS_INF; OCAS_NEG_INF = -_OCAS_PLUS_INF;
if ( pair->fp != 0 ) if ( pair->fp != 0 )
{ {
for (iter=0; iter<2; iter++) for (iter=0; iter<2; iter++)
@ -297,7 +297,7 @@ void tradebots_calcanswers(struct tradebot_arbpair *pair)
{ {
savepos = ftell(pair->fp); savepos = ftell(pair->fp);
timestamp = tradebots_featureset(&highbid,&lowask,&ave,&vol,bidaves,askaves,bidslopes,askslopes,rawfeatures); timestamp = tradebots_featureset(&highbid,&lowask,&ave,&vol,bidaves,askaves,bidslopes,askslopes,rawfeatures);
printf("timestamp.%u firsttime.%u\n",timestamp,firsttime); //printf("timestamp.%u firsttime.%u\n",timestamp,firsttime);
if ( timestamp == 0 ) if ( timestamp == 0 )
continue; continue;
if ( firsttime == 0 ) if ( firsttime == 0 )
@ -393,6 +393,66 @@ void tradebots_calcanswers(struct tradebot_arbpair *pair)
printf("ERROR: %s/%s not on feature boundary\n",pair->base,pair->rel); printf("ERROR: %s/%s not on feature boundary\n",pair->base,pair->rel);
} }
double get_yval(double *answerp,int32_t selector,int32_t ind,int32_t refc,int32_t answerind)
{
float answer; struct tradebot_arbpair *pair; long savepos;
pair = &Arbpairs[refc];
if ( pair->fp != 0 )
{
savepos = ftell(pair->fp);
fseek(pair->fp,ind*sizeof(pair->rawfeatures)+answerind*sizeof(*pair->rawfeatures),SEEK_SET);
if ( fread(&answer,1,sizeof(answer),pair->fp) != sizeof(answer) )
answer = 0;
fseek(pair->fp,savepos,SEEK_SET);
if ( isnan(answer) != 0 )
return(0);
if ( answer > .01 )
answer = .01;
else if ( answer < -.01 )
answer = -.01;
if ( answerp != 0 )
*answerp = answer;
if ( answer > 0. )
return(1.);
else if ( answer < 0. )
return(-1.);
}
return(0.);
}
float *get_features(int32_t numfeatures,int32_t refc,int32_t ind)
{
struct tradebot_arbpair *pair; long savepos; int32_t i,n; double svmfeatures[4096];
float rawfeatures[sizeof(pair->rawfeatures)],prevrawfeatures[sizeof(pair->rawfeatures)],*svmf=0;
pair = &Arbpairs[refc];
pair->numsvmfeatures = numfeatures;
if ( pair->fp != 0 && ind > 0 )
{
savepos = ftell(pair->fp);
fseek(pair->fp,(ind-1)*sizeof(pair->rawfeatures),SEEK_SET);
if ( fread(&prevrawfeatures,1,sizeof(pair->rawfeatures),pair->fp) == sizeof(pair->rawfeatures) && fread(&rawfeatures,1,sizeof(pair->rawfeatures),pair->fp) == sizeof(pair->rawfeatures) )
{
n = tradebots_calcsvmfeatures(svmfeatures,pair,rawfeatures,prevrawfeatures);
if ( n != pair->numsvmfeatures )
{
printf("unexpected numsvmfeatures %d vs %d\n",n,pair->numsvmfeatures);
//return(-1);
}
svmf = calloc(n,sizeof(*svmf));
for (i=0; i<n; i++)
svmf[i] = svmfeatures[i];
}
fseek(pair->fp,savepos,SEEK_SET);
}
return(svmf);
}
double set_ocas_model(int refc,int answerind,double *W,double W0,int numfeatures,int firstweekind,int len,int bad,double dist,double predabs,int posA,int negA,double answerabs,double aveanswer)
{
return(0.);
}
#include "tradebots_SVM.h"
static char *assetids[][2] = static char *assetids[][2] =
{ {
{ "12071612744977229797", "UNITY" }, { "12071612744977229797", "UNITY" },
@ -438,7 +498,7 @@ void tradebot_arbentry(struct tradebot_arbentry *arb,char *exchange,double price
} else printf("mismatched arbexchange? (%s vs %s)\n",arb->exchange,exchange); } else printf("mismatched arbexchange? (%s vs %s)\n",arb->exchange,exchange);
} }
struct tradebot_arbexchange *tradebot_arbexchange_find(struct tradebot_arbpair *pair,char *exchange) struct tradebot_arbexchange *tradebots_arbexchange_find(struct tradebot_arbpair *pair,char *exchange)
{ {
int32_t i; int32_t i;
for (i=0; i<pair->numexchanges; i++) for (i=0; i<pair->numexchanges; i++)
@ -447,7 +507,7 @@ struct tradebot_arbexchange *tradebot_arbexchange_find(struct tradebot_arbpair *
return(0); return(0);
} }
struct tradebot_arbexchange *tradebot_arbexchange_create(struct tradebot_arbpair *pair,char *exchange) struct tradebot_arbexchange *tradebots_arbexchange_create(struct tradebot_arbpair *pair,char *exchange)
{ {
if ( pair->numexchanges < sizeof(pair->exchanges)/sizeof(*pair->exchanges) ) if ( pair->numexchanges < sizeof(pair->exchanges)/sizeof(*pair->exchanges) )
{ {
@ -466,15 +526,15 @@ void tradebot_arbcandidate(struct supernet_info *myinfo,char *exchange,int32_t t
return; return;
} }
offset = (tradedir > 0) ? 0 : 1; offset = (tradedir > 0) ? 0 : 1;
if ( (pair= tradebot_arbpair_find(base,rel)) == 0 ) if ( (pair= tradebots_arbpair_find(base,rel)) == 0 )
pair = tradebot_arbpair_create(base,rel); pair = tradebots_arbpair_create(base,rel);
if ( pair == 0 ) if ( pair == 0 )
{ {
printf("cant get pair for %s %s/%s\n",exchange,base,rel); printf("cant get pair for %s %s/%s\n",exchange,base,rel);
return; return;
} }
if ( (arbex= tradebot_arbexchange_find(pair,exchange)) == 0 ) if ( (arbex= tradebots_arbexchange_find(pair,exchange)) == 0 )
arbex = tradebot_arbexchange_create(pair,exchange); arbex = tradebots_arbexchange_create(pair,exchange);
if ( arbex != 0 ) if ( arbex != 0 )
{ {
//printf("cand.%d %16s %s %12.6f (%5s/%-5s) at %12.8f profit %.03f\n",pair->numexchanges,exchange,tradedir<0?"ask":"bid",volume,base,rel,price,profitmargin); //printf("cand.%d %16s %s %12.6f (%5s/%-5s) at %12.8f profit %.03f\n",pair->numexchanges,exchange,tradedir<0?"ask":"bid",volume,base,rel,price,profitmargin);
@ -617,13 +677,13 @@ void tradebot_arbcandidate(struct supernet_info *myinfo,char *exchange,int32_t t
{ {
if ( myinfo->svmfeatures == 0 ) if ( myinfo->svmfeatures == 0 )
myinfo->svmfeatures = calloc(sizeof(*myinfo->svmfeatures),pair->numsvmfeatures); myinfo->svmfeatures = calloc(sizeof(*myinfo->svmfeatures),pair->numsvmfeatures);
if ( tradebots_calcsvmfeatures(myinfo->svmfeatures,pair) > 0 ) if ( tradebots_calcsvmfeatures(myinfo->svmfeatures,pair,pair->rawfeatures,pair->prevrawfeatures) > 0 )
tradebots_calcpreds(pair->RTpreds,pair,myinfo->svmfeatures); tradebots_calcpreds(pair->RTpreds,pair,myinfo->svmfeatures);
} }
} }
pair->lasttime = (uint32_t)time(NULL); pair->lasttime = (uint32_t)time(NULL);
} }
if ( time(NULL) > pair->lastanswertime+3600 ) if ( 0 && time(NULL) > pair->lastanswertime+3600 )
{ {
tradebots_calcanswers(pair); tradebots_calcanswers(pair);
pair->lastanswertime = (uint32_t)time(NULL); pair->lastanswertime = (uint32_t)time(NULL);
@ -861,8 +921,8 @@ void tradebots_processprices(struct supernet_info *myinfo,struct exchange_info *
price = bidasks[1].price; price = bidasks[1].price;
tradebot_arbcandidate(myinfo,exchange->name,-1,base,rel,price,volume,(uint32_t)time(NULL),profitmargin); tradebot_arbcandidate(myinfo,exchange->name,-1,base,rel,price,volume,(uint32_t)time(NULL),profitmargin);
} }
if ( (pair= tradebot_arbpair_find(base,rel)) == 0 ) if ( (pair= tradebots_arbpair_find(base,rel)) == 0 )
pair = tradebot_arbpair_create(base,rel); pair = tradebots_arbpair_create(base,rel);
if ( pair != 0 ) if ( pair != 0 )
{ {
if ( strcmp(rel,"NXT") == 0 ) if ( strcmp(rel,"NXT") == 0 )
@ -885,3 +945,19 @@ void tradebots_processprices(struct supernet_info *myinfo,struct exchange_info *
} }
} }
} }
#include "../includes/iguana_apidefs.h"
#include "../includes/iguana_apideclares.h"
TWO_STRINGS(tradebots,gensvm,base,rel)
{
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 )
{
tradebots_calcanswers(pair);
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\"}"));
}
#include "../includes/iguana_apiundefs.h"

2
crypto777/OS_nonportable.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
crypto777/OS_portable.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
crypto777/OS_portable.h

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
crypto777/OS_time.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
crypto777/SaM.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
crypto777/bitcoind_RPC.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
crypto777/cJSON.c

@ -634,7 +634,7 @@ void cJSON_Minify(char *json)
// the following written by jl777 // the following written by jl777
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
crypto777/curve25519.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
crypto777/iguana_OS.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
crypto777/iguana_serdes.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
crypto777/iguana_utils.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
crypto777/ramcoder.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
datachain/datachain.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
deprecated/iguana_instantdex.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
gecko/gecko.c

@ -1,6 +1,6 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/SuperNET_keys.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/dPoW.h

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/dpow/dpow_fsm.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/dpow/dpow_network.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/dpow/dpow_prices.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/dpow/dpow_rpc.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/dpow/dpow_tx.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/exchanges/bitcoin.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/exchanges/bitcoin.h

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/exchanges/bitfinex.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/exchanges/bitstamp.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/exchanges/bittrex.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/exchanges/btc38.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/exchanges/btce.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/exchanges/coinbase.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/exchanges/exchange_supports.h

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/exchanges/exchange_undefs.h

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/exchanges/fxcm.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/exchanges/huobi.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/exchanges/instaforex.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/exchanges/jumblr.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/exchanges/lakebtc.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/exchanges/nxtae.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/exchanges/okcoin.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/exchanges/poloniex.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/exchanges/quadriga.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/exchanges/truefx.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/exchanges/unconf.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/exchanges777.h

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana777.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana777.h

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana_accept.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana_bitmap.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana_blocks.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana_bundles.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana_chains.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana_exchanges.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana_init.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana_interpreter.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana_json.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana_mofn.c

@ -309,7 +309,7 @@ int maingen(int argc,char **argv)
} }
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana_msg.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana_notary.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana_payments.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana_peers.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana_ramchain.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana_realtime.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana_recv.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana_rpc.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana_scripts.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana_secp.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana_sign.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana_spendvectors.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana_tradebots.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana_tx.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana_txidfind.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana_unspents.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana_volatiles.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/iguana_wallet.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/main.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
iguana/ramchain_api.c

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

3
includes/iguana_apideclares.h

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *
@ -43,6 +43,7 @@ ZERO_ARGS(pax,start);
HASH_ARRAY_STRING(tradebot,liquidity,hash,vals,targetcoin); HASH_ARRAY_STRING(tradebot,liquidity,hash,vals,targetcoin);
ZERO_ARGS(tradebot,amlp); ZERO_ARGS(tradebot,amlp);
ZERO_ARGS(tradebot,notlp); ZERO_ARGS(tradebot,notlp);
TWO_STRINGS(tradebots,gensvm,base,rel);
INT_AND_ARRAY(iguana,rates,unused,quotes); INT_AND_ARRAY(iguana,rates,unused,quotes);
TWO_STRINGS(iguana,rate,base,rel); TWO_STRINGS(iguana,rate,base,rel);

2
includes/iguana_defines.h

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
includes/iguana_funcs.h

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
includes/iguana_globals.h

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
includes/iguana_structs.h

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

2
includes/iguana_types.h

@ -1,5 +1,5 @@
/****************************************************************************** /******************************************************************************
* Copyright © 2014-2016 The SuperNET Developers. * * Copyright © 2014-2017 The SuperNET Developers. *
* * * *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
* the top-level directory of this distribution for the individual copyright * * the top-level directory of this distribution for the individual copyright *

Loading…
Cancel
Save