Browse Source

Test

etomic
jl777 8 years ago
parent
commit
85b76c06f5
  1. 4
      iguana/exchanges/LP_commands.c
  2. 1
      iguana/exchanges/getpeers
  3. 1
      iguana/exchanges/getprice
  4. 1
      iguana/exchanges/orderbook

4
iguana/exchanges/LP_commands.c

@ -602,11 +602,11 @@ char *stats_JSON(cJSON *argjson,char *remoteaddr,uint16_t port) // from rpc port
} }
} }
} }
else if ( IAMCLIENT == 0 && strcmp(method,"getprice") == 0 ) else if ( strcmp(method,"getprice") == 0 )
retstr = LP_pricestr(jstr(argjson,"base"),jstr(argjson,"rel")); retstr = LP_pricestr(jstr(argjson,"base"),jstr(argjson,"rel"));
else if ( strcmp(method,"orderbook") == 0 ) else if ( strcmp(method,"orderbook") == 0 )
retstr = LP_orderbook(jstr(argjson,"base"),jstr(argjson,"rel")); retstr = LP_orderbook(jstr(argjson,"base"),jstr(argjson,"rel"));
else if ( IAMCLIENT == 0 && strcmp(method,"getpeers") == 0 ) else if ( strcmp(method,"getpeers") == 0 )
retstr = LP_peers(); retstr = LP_peers();
else if ( IAMCLIENT == 0 && strcmp(method,"getutxos") == 0 && (coin= jstr(argjson,"coin")) != 0 ) else if ( IAMCLIENT == 0 && strcmp(method,"getutxos") == 0 && (coin= jstr(argjson,"coin")) != 0 )
retstr = LP_utxos(LP_mypeer,coin,jint(argjson,"lastn")); retstr = LP_utxos(LP_mypeer,coin,jint(argjson,"lastn"));

1
iguana/exchanges/getpeers

@ -0,0 +1 @@
curl --url "http://127.0.0.1:7779" --data "{\"method\":\"getpeers\"}"

1
iguana/exchanges/getprice

@ -0,0 +1 @@
curl --url "http://127.0.0.1:7779" --data "{\"method\":\"myprice\",\"base\":\"REVS\",\"rel\":\"KMD\"}"

1
iguana/exchanges/orderbook

@ -0,0 +1 @@
curl --url "http://127.0.0.1:7779" --data "{\"method\":\"orderbook\",\"base\":\"REVS\",\"rel\":\"KMD\"}"
Loading…
Cancel
Save