Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
a95b0a4c8c
  1. 8
      basilisk/basilisk_DEX.c
  2. 2
      crypto777/bitcoind_RPC.c
  3. 10
      iguana/main.c

8
basilisk/basilisk_DEX.c

@ -654,9 +654,15 @@ void basilisk_requests_poll(struct supernet_info *myinfo)
{
char *retstr; cJSON *retjson,*array,*item; int32_t i,n,m; struct basilisk_request tmpR,R,issueR,refR,list[BASILISK_MAXRELAYS*10]; double metric=0.,hwm = 0.;
memset(&issueR,0,sizeof(issueR));
/*{
double retvals[4],aveprice; uint64_t destamount;
aveprice = instantdex_avehbla(myinfo,retvals,"BTCD","BTC",1);
destamount = 0.99 * aveprice * 1 * SATOSHIDEN;
printf("destamount %.8f aveprice %.8f\n",dstr(destamount),aveprice);
}*/
if ( (retstr= InstantDEX_incoming(myinfo,0,0,0,0)) != 0 )
{
printf("poll.(%s)\n",retstr);
//printf("poll.(%s)\n",retstr);
if ( (retjson= cJSON_Parse(retstr)) != 0 )
{
if ( (array= jarray(&n,retjson,"result")) != 0 )

2
crypto777/bitcoind_RPC.c

@ -16,7 +16,7 @@
#include "OS_portable.h"
#ifdef __APPLE__
//#define LIQUIDITY_PROVIDER
#define LIQUIDITY_PROVIDER
#endif
#ifdef LIQUIDITY_PROVIDER

10
iguana/main.c

@ -1487,11 +1487,11 @@ void iguana_main(void *arg)
strcpy(myinfo->rpcsymbol,"BTCD");
iguana_urlinit(myinfo,ismainnet,usessl);
//category_init(myinfo);
exchange_create("bitcoin",0);
exchange_create("poloniex",0);
exchange_create("bittrex",0);
exchange_create("btc38",0);
exchange_create("huobi",0);
myinfo->tradingexchanges[myinfo->numexchanges++] = exchange_create("bitcoin",0);
myinfo->tradingexchanges[myinfo->numexchanges++] = exchange_create("poloniex",0);
myinfo->tradingexchanges[myinfo->numexchanges++] = exchange_create("bittrex",0);
myinfo->tradingexchanges[myinfo->numexchanges++] = exchange_create("btc38",0);
myinfo->tradingexchanges[myinfo->numexchanges++] = exchange_create("huobi",0);
argjson = arg != 0 ? cJSON_Parse(arg) : cJSON_Parse("{}");
//iguana_coinadd("BTC",argjson); dont do this here, coin args not set
///iguana_coinadd("LTC",argjson);

Loading…
Cancel
Save