Browse Source

#!/bin/bash

beta
jl777 7 years ago
parent
commit
f9638cfa35
  1. 1
      iguana/exchanges/autofill
  2. 1
      iguana/exchanges/autoprice
  3. 1
      iguana/exchanges/autotrade
  4. 1
      iguana/exchanges/balance_loop
  5. 1
      iguana/exchanges/bestfit
  6. 1
      iguana/exchanges/buy
  7. 1
      iguana/exchanges/cancelorder
  8. 1
      iguana/exchanges/client
  9. 1
      iguana/exchanges/client_osx
  10. 1
      iguana/exchanges/debug
  11. 1
      iguana/exchanges/deletemessages
  12. 1
      iguana/exchanges/disable
  13. 1
      iguana/exchanges/dividends
  14. 1
      iguana/exchanges/electrum
  15. 1
      iguana/exchanges/electrum.chips
  16. 1
      iguana/exchanges/electrum.chips2
  17. 1
      iguana/exchanges/electrum.kmd
  18. 1
      iguana/exchanges/electrum.kmd2
  19. 1
      iguana/exchanges/electrum.kmd3
  20. 1
      iguana/exchanges/electrums
  21. 1
      iguana/exchanges/enable
  22. 1
      iguana/exchanges/getcoin
  23. 1
      iguana/exchanges/getcoins
  24. 1
      iguana/exchanges/getmessages
  25. 1
      iguana/exchanges/getpeers
  26. 1
      iguana/exchanges/getpeersIP
  27. 1
      iguana/exchanges/getprices
  28. 1
      iguana/exchanges/getutxos
  29. 1
      iguana/exchanges/goal
  30. 1
      iguana/exchanges/goals
  31. 1
      iguana/exchanges/help
  32. 1
      iguana/exchanges/install
  33. 1
      iguana/exchanges/inv
  34. 1
      iguana/exchanges/listunspent
  35. 1
      iguana/exchanges/loop
  36. 1
      iguana/exchanges/message
  37. 1
      iguana/exchanges/myprice
  38. 1
      iguana/exchanges/myprices
  39. 1
      iguana/exchanges/numutxos
  40. 1
      iguana/exchanges/orderbook
  41. 1
      iguana/exchanges/ordermatch
  42. 1
      iguana/exchanges/portfolio
  43. 1
      iguana/exchanges/pricearray
  44. 1
      iguana/exchanges/pub
  45. 1
      iguana/exchanges/register
  46. 1
      iguana/exchanges/registerall
  47. 1
      iguana/exchanges/run
  48. 1
      iguana/exchanges/run_osx
  49. 1
      iguana/exchanges/secretaddresses
  50. 1
      iguana/exchanges/sell
  51. 1
      iguana/exchanges/setprice
  52. 1
      iguana/exchanges/snapshot
  53. 1
      iguana/exchanges/snapshot_balance
  54. 1
      iguana/exchanges/snapshot_loop
  55. 1
      iguana/exchanges/status
  56. 1
      iguana/exchanges/swapstatus
  57. 1
      iguana/exchanges/trade
  58. 1
      iguana/exchanges/utxos

1
iguana/exchanges/autofill

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"autofill\",\"base\":\"KMD\",\"rel\":\"BTC\",\"price\":0.0005,\"relvolume\":0.1}"

1
iguana/exchanges/autoprice

@ -1,3 +1,4 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"autoprice\",\"base\":\"KMD\",\"rel\":\"BTC\",\"margin\":0.0001}"
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"autoprice\",\"base\":\"BTC\",\"rel\":\"KMD\",\"margin\":0.0001}"

1
iguana/exchanges/autotrade

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"autotrade\",\"base\":\"REVS\",\"rel\":\"KMD\",\"relvolume\":1.01,\"price\":1.234}"

1
iguana/exchanges/balance_loop

@ -1,3 +1,4 @@
#!/bin/bash
source userpass
ht=$1
while true

1
iguana/exchanges/bestfit

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"bestfit\",\"rel\":\"KMD\",\"relvolume\":1.01}"

1
iguana/exchanges/buy

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"buy\",\"base\":\"KMD\",\"rel\":\"BTC\",\"relvolume\":0.005,\"price\":0.0005}"

1
iguana/exchanges/cancelorder

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"setprice\",\"base\":\"REVS\",\"rel\":\"KMD\",\"price\":9999999.99}"

1
iguana/exchanges/client

@ -1,3 +1,4 @@
#!/bin/bash
source passphrase
source coins
pkill -15 marketmaker;

1
iguana/exchanges/client_osx

@ -1,3 +1,4 @@
#!/bin/bash
source passphrase
source coins
pkill -15 marketmaker;

1
iguana/exchanges/debug

@ -1,3 +1,4 @@
#!/bin/bash
source passphrase
source coins
pkill -15 marketmaker;

1
iguana/exchanges/deletemessages

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"deletemessages\",\"firsti\":0,\"num\":10}"

1
iguana/exchanges/disable

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"disable\",\"coin\":\"REVS\"}"

1
iguana/exchanges/dividends

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"dividends\",\"coin\":\"KMD\",\"height\":$1,\"prefix\":\"fiat/jumblr sendtoaddress\",\"suffix\":\"\",\"dividend\":50000,\"dust\":1}"

1
iguana/exchanges/electrum

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"electrum\",\"coin\":\"BTC\",\"ipaddr\":\"173.212.225.176\",\"port\":50001}"

1
iguana/exchanges/electrum.chips

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"electrum\",\"coin\":\"CHIPS\",\"ipaddr\":\"173.212.225.176\",\"port\":50076}"

1
iguana/exchanges/electrum.chips2

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"electrum\",\"coin\":\"CHIPS\",\"ipaddr\":\"136.243.45.140\",\"port\":50076}"

1
iguana/exchanges/electrum.kmd

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"electrum\",\"coin\":\"KMD\",\"ipaddr\":\"96.44.166.176\",\"port\":8777}"

1
iguana/exchanges/electrum.kmd2

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"electrum\",\"coin\":\"KMD\",\"ipaddr\":\"173.212.225.176\",\"port\":50011}"

1
iguana/exchanges/electrum.kmd3

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"electrum\",\"coin\":\"KMD\",\"ipaddr\":\"136.243.45.140\",\"port\":50011}"

1
iguana/exchanges/electrums

@ -1,3 +1,4 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"electrum\",\"coin\":\"REVS\",\"ipaddr\":\"173.212.225.176\",\"port\":50050}"

1
iguana/exchanges/enable

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"enable\",\"coin\":\"REVS\"}"

1
iguana/exchanges/getcoin

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"getcoin\",\"coin\":\"LTC\"}"

1
iguana/exchanges/getcoins

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"getcoins\"}"

1
iguana/exchanges/getmessages

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"getmessages\",\"firsti\":0,\"num\":10}"

1
iguana/exchanges/getpeers

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"getpeers\"}"

1
iguana/exchanges/getpeersIP

@ -1,3 +1,4 @@
#!/bin/bash
curl --url "http://5.9.253.195:7783" --data "{\"method\":\"getpeers\"}"
curl --url "http://5.9.253.196:7783" --data "{\"method\":\"getpeers\"}"
curl --url "http://5.9.253.197:7783" --data "{\"method\":\"getpeers\"}"

1
iguana/exchanges/getprices

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"getprices\",\"coin\":\"REVS\"}"

1
iguana/exchanges/getutxos

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"getutxos\",\"coin\":\"REVS\"}"

1
iguana/exchanges/goal

@ -1,3 +1,4 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"goal\",\"coin\":\"KMD\",\"val\":99}"
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"goal\",\"coin\":\"BTC\",\"val\":10}"

1
iguana/exchanges/goals

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"goal\"}"

1
iguana/exchanges/help

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"help\"}"

1
iguana/exchanges/install

@ -1,3 +1,4 @@
#!/bin/bash
cp electrum snapshot_balance snapshot_loop secretaddresses dividends snapshot goals goal portfolio autoprice deletemessages getmessages debug register registerall buy sell bestfit orderbook client run_osx client_osx run coins disable enable myprice myprices getcoins getpeers getpeersIP getprices getutxos help inv setprice status utxos ../dexscripts
cd ../dexscripts
#cp ../exchanges/passphrase ../exchanges/userpass .

1
iguana/exchanges/inv

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"inventory\",\"coin\":\"REVS\"}"

1
iguana/exchanges/listunspent

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"listunspent\",\"coin\":\"BTC\",\"address\":\"1DPDsPCNNCF5SHhPPrddXcJe78rM6CBcH3\"}"

1
iguana/exchanges/loop

@ -1,3 +1,4 @@
#!/bin/bash
while true
do
source userpass

1
iguana/exchanges/message

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"pubkey\":\"$1\",\"method\":\"sendmessage\",\"message\":\"some sort of message\"}"

1
iguana/exchanges/myprice

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"myprice\",\"base\":\"REVS\",\"rel\":\"KMD\"}"

1
iguana/exchanges/myprices

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"myprices\"}"

1
iguana/exchanges/numutxos

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"numutxos\"}"

1
iguana/exchanges/orderbook

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"orderbook\",\"base\":\"JUMBLR\",\"rel\":\"KMD\"}"

1
iguana/exchanges/ordermatch

@ -1,3 +1,4 @@
#!/bin/bash
source userpass
#ordermatch(base, txfee=0, rel, desttxfee=0, price, txid, vout, feetxid, feevout, duration=3600)\n\
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"ordermatch\",\"base\":\"REVS\",\"rel\":\"KMD\",\"price\":1.234,\"duration\":600,\"txfee\":0,\"desttxfee\":0,\"txid\":\"$1\",\"vout\":$2,\"feetxid\":\"$3\",\"feevout\":$4}"

1
iguana/exchanges/portfolio

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"portfolio\"}"

1
iguana/exchanges/pricearray

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"pricearray\",\"base\":\"KMD\",\"rel\":\"BTC\",\"timescale\":60}"

1
iguana/exchanges/pub

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"pubkey\":\"6578099f6474d9b8bd66a7a136b922029a989818ec0309aee962dd6ac1862b74\",\"method\":\"forward\",\"method2\":\"publish\",\"data\":\"nonsense\"}"

1
iguana/exchanges/register

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://5.9.253.195:7783" --data "{\"userpass\":\"9bb4846d24136fc7c33515e45bccbab5c8fb7b57b411aa20057b371da9358255\",\"agent\":\"stats\",\"method\":\"register\",\"client\":\"6d3332be4904feafd326609bd76b66528dc7b2e2d75a7bd110c6bf8d19c4cf58\",\"pushaddr\":\"5.9.253.195\",\"pushport\":\"10000\"}"

1
iguana/exchanges/registerall

@ -1,3 +1,4 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"registerall\",\"numnodes\":10}"

1
iguana/exchanges/run

@ -1,3 +1,4 @@
#!/bin/bash
source passphrase
source coins
pkill -15 marketmaker;

1
iguana/exchanges/run_osx

@ -1,3 +1,4 @@
#!/bin/bash
source passphrase
source coins
pkill -15 marketmaker;

1
iguana/exchanges/secretaddresses

@ -1,3 +1,4 @@
#!/bin/bash
source userpass
echo "usage: ./secretaddresses 'passphrase'"

1
iguana/exchanges/sell

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"sell\",\"base\":\"KMD\",\"rel\":\"BTC\",\"basevolume\":10.0\"price\":0.0005}"

1
iguana/exchanges/setprice

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"setprice\",\"base\":\"REVS\",\"rel\":\"KMD\",\"price\":1.234}"

1
iguana/exchanges/snapshot

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"snapshot\",\"coin\":\"KMD\",\"height\":$1}"

1
iguana/exchanges/snapshot_balance

@ -1,3 +1,4 @@
#!/bin/bash
source userpass
ht=$1
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"snapshot_balance\",\"coin\":\"KMD\",\"height\":$ht,\"addresses\":[\"RSAzPFzgTZHNcxLNLdGyVPbjbMA8PRY7Ss\", \"RBgD5eMGwZppid4x7PTEC2Wg1AzvxbsQqB\"]}"

1
iguana/exchanges/snapshot_loop

@ -1,3 +1,4 @@
#!/bin/bash
source userpass
ht=$1
while true

1
iguana/exchanges/status

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"swapstatus\"}"

1
iguana/exchanges/swapstatus

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"swapstatus\",\"requestid\":2291973695,\"quoteid\":3387529385}"

1
iguana/exchanges/trade

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"trade\",\"price\":1.234,\"base\":\"REVS\",\"rel\":\"KMD\",\"quote\":{}}"

1
iguana/exchanges/utxos

@ -1,2 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"getutxos\",\"coin\":\"REVS\"}"

Loading…
Cancel
Save