Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
4cef845ce6
  1. 4
      iguana/iguana_exchanges.c
  2. 2
      iguana/js/instantdex.js

4
iguana/iguana_exchanges.c

@ -59,7 +59,7 @@ cJSON *exchanges777_quotejson(struct exchange_quote *quote,int32_t allflag,doubl
if ( quote->orderid > 0 ) if ( quote->orderid > 0 )
jadd64bits(json,"orderid",quote->orderid); jadd64bits(json,"orderid",quote->orderid);
//if ( quote->offerNXT != 0 ) //if ( quote->offerNXT != 0 )
jadd64bits(json,"offerer",quote->offerNXT); jadd64bits(json,"account",quote->offerNXT);
return(json); return(json);
} else return(cJSON_CreateNumber(quote->price)); } else return(cJSON_CreateNumber(quote->price));
} }
@ -245,7 +245,7 @@ void exchanges777_json_quotes(struct exchange_info *exchange,double commission,c
volume = jdouble(item,"volume"); volume = jdouble(item,"volume");
timestamp = juint(item,"timestamp"); timestamp = juint(item,"timestamp");
orderid = j64bits(item,"orderid"); orderid = j64bits(item,"orderid");
offerNXT = j64bits(item,"offerer"); offerNXT = j64bits(item,"account");
} }
if ( price == 0. || volume == 0. ) if ( price == 0. || volume == 0. )
continue; continue;

2
iguana/js/instantdex.js

@ -41,7 +41,7 @@ var show_resposnse=function(response){
if(i==='tag') continue; if(i==='tag') continue;
if(isJsonArray(response[i]) ){ if(isJsonArray(response[i]) ){
//return_json_table({"orderid":"16800917935208460084","offerer":"0","type":"bid","base":"BTCD","rel":"BTCD","timestamp":1454949273,"price":0.00250000,"volume":11,"nonce":2684223522,"pendingvolume":0,"expiresin":3496}) //return_json_table({"orderid":"16800917935208460084","account":"0","type":"bid","base":"BTCD","rel":"BTCD","timestamp":1454949273,"price":0.00250000,"volume":11,"nonce":2684223522,"pendingvolume":0,"expiresin":3496})
$('#Instandex_output_table').append("<tr><td>"+i+"</td><td>"+return_json_table(response[i])+"</td></tr>"); $('#Instandex_output_table').append("<tr><td>"+i+"</td><td>"+return_json_table(response[i])+"</td></tr>");
continue; continue;
} }

Loading…
Cancel
Save