diff --git a/iguana/exchanges/README.md b/iguana/exchanges/README.md index 30cc0e7ac..eab6d5720 100644 --- a/iguana/exchanges/README.md +++ b/iguana/exchanges/README.md @@ -45,13 +45,13 @@ nano ~SuperNET/iguana/dexscripts/enable copy the default command and paste it below but with the coin edited to JUMBLR in this case: curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"enable\",\"coin\":\"JUMBLR\"}" The same will happen for any other script in the dexscripts directory. You will need to edit the scripts to include or exclude the coins you want to trade. -IMPORTANT: All these scripts are expecting a userpass file, which contains the definition of the $userpass variable to authenticate API access. This avoids evil webpages that try to issue port 7779 calls to steal your money. At first you wont know the value of userpass. To find out, just run any API script. The first one will return all the required data, the "userpass" field is first and you can copy that value and put it into ~/SuperNET/iguana/dexscripts/userpass file. If you dont, all subsequent API calls will get authorization errors.The userpass variable is linked to each passphrase and that is defined in the randval file. Put your passphrase in that file. You can find templates for these two files in the iguana/exchanges dir. (you need to copy the edited version of these files to ~/SuperNET/iguana/dexscripts). +IMPORTANT: All these scripts are expecting a userpass file, which contains the definition of the $userpass variable to authenticate API access. This avoids evil webpages that try to issue port 7779 calls to steal your money. At first you wont know the value of userpass. To find out, just run any API script. The first one will return all the required data, the "userpass" field is first and you can copy that value and put it into ~/SuperNET/iguana/dexscripts/userpass file. If you dont, all subsequent API calls will get authorization errors.The userpass variable is linked to each passphrase and that is defined in the passphrase file. Put your passphrase in that file. You can find templates for these two files in the iguana/exchanges dir. (you need to copy the edited version of these files to ~/SuperNET/iguana/dexscripts). cd ~/SuperNET/iguana/dexscripts ./enable (look for the userpass passphrase that will be generated and copy it) -Now you have to paste the passphrase in both userpass and randval files: +Now you have to paste the passphrase in both userpass and passphrase files: nano ./userpass -nano ./randval +nano ./passphrase ( paste the passphrase generated into the files where it says: “”) EXCHANGE CLIENT STARTUP Next step is to actually start the marketmaker from ~/SuperNET/iguana/dexscripts. diff --git a/iguana/exchanges/client b/iguana/exchanges/client index 4634d6fd2..8b3f8a7ba 100755 --- a/iguana/exchanges/client +++ b/iguana/exchanges/client @@ -1,8 +1,8 @@ -source randval +source passphrase source coins pkill -15 marketmaker; git pull; cd ..; ./m_mm; -./marketmaker "{\"gui\":\"nogui\",\"client\":1, \"userhome\":\"/${HOME#"/"}\", \"passphrase\":\"$randval\", \"coins\":$coins}" & +./marketmaker "{\"gui\":\"nogui\",\"client\":1, \"userhome\":\"/${HOME#"/"}\", \"passphrase\":\"$passphrase\", \"coins\":$coins}" & diff --git a/iguana/exchanges/client_osx b/iguana/exchanges/client_osx index 2d1442a76..9e1cada67 100755 --- a/iguana/exchanges/client_osx +++ b/iguana/exchanges/client_osx @@ -1,8 +1,8 @@ -source randval +source passphrase source coins pkill -15 marketmaker; git pull; cd ..; ./m_mm; -./marketmaker "{\"gui\":\"nogui\",\"client\":1, \"userhome\":\"/${HOME#"/"}/Library/Application\ Support\", \"passphrase\":\"$randval\", \"coins\":$coins}" & +./marketmaker "{\"gui\":\"nogui\",\"client\":1, \"userhome\":\"/${HOME#"/"}/Library/Application\ Support\", \"passphrase\":\"$passphrase\", \"coins\":$coins}" & diff --git a/iguana/exchanges/install b/iguana/exchanges/install index 8aa0b8209..e655672b6 100755 --- a/iguana/exchanges/install +++ b/iguana/exchanges/install @@ -1,4 +1,4 @@ cp orderbook autotrade client run_osx client_osx run coins disable enable forward myprice myprices getcoins getpeers getpeersIP getprices getutxos help inv lookup pub setprice status utxos ../dexscripts cd ../dexscripts -cp ../exchanges/randval ../exchanges/userpass . -echo you will need to modify randval file with your passphrase and userpass file with userpass value +cp ../exchanges/passphrase ../exchanges/userpass . +echo you will need to modify passphrase file with your passphrase and userpass file with userpass value diff --git a/iguana/exchanges/passphrase b/iguana/exchanges/passphrase new file mode 100644 index 000000000..eb00095d6 --- /dev/null +++ b/iguana/exchanges/passphrase @@ -0,0 +1 @@ +export passphrase="" diff --git a/iguana/exchanges/randval b/iguana/exchanges/randval deleted file mode 100644 index ca5c33f4d..000000000 --- a/iguana/exchanges/randval +++ /dev/null @@ -1 +0,0 @@ -export randval="" diff --git a/iguana/exchanges/run b/iguana/exchanges/run index b8242f67a..59e4ec2e4 100755 --- a/iguana/exchanges/run +++ b/iguana/exchanges/run @@ -1,7 +1,7 @@ -source randval +source passphrase source coins pkill -15 marketmaker; git pull; cd ..; ./m_mm; - $1 ./marketmaker "{\"gui\":\"nogui\", \"profitmargin\":0.01, \"userhome\":\"/${HOME#"/"}\", \"passphrase\":\"$randval\", \"coins\":$coins}" & + $1 ./marketmaker "{\"gui\":\"nogui\", \"profitmargin\":0.01, \"userhome\":\"/${HOME#"/"}\", \"passphrase\":\"$passphrase\", \"coins\":$coins}" & diff --git a/iguana/exchanges/run_osx b/iguana/exchanges/run_osx index 5c129b0cf..c8924d6f4 100755 --- a/iguana/exchanges/run_osx +++ b/iguana/exchanges/run_osx @@ -1,7 +1,7 @@ -source randval +source passphrase source coins pkill -15 marketmaker; git pull; cd ..; ./m_mm; -$1 ./marketmaker "{\"gui\":\"nogui\", \"profitmargin\":0.01, \"userhome\":\"/${HOME#"/"}/Library/Application\ Support\", \"passphrase\":\"$randval\", \"coins\":$coins}" & +$1 ./marketmaker "{\"gui\":\"nogui\", \"profitmargin\":0.01, \"userhome\":\"/${HOME#"/"}/Library/Application\ Support\", \"passphrase\":\"$passphrase\", \"coins\":$coins}" &