committed by
GitHub
27 changed files with 387 additions and 29 deletions
@ -0,0 +1,7 @@ |
|||
@echo off |
|||
set /p TMPUSERPASS=<userpass |
|||
set USERPASS=%TMPUSERPASS: =% |
|||
set /p PASSPHRASE=<passphrase |
|||
echo passphrase: "%PASSPHRASE%" |
|||
echo userpass: "%USERPASS%" |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"%USERPASS%\",\"method\":\"bot_buy\",\"base\":\"MNZ\",\"rel\":\"KMD\",\"maxprice\":0.20,\"relvolume\":10.0}" |
@ -0,0 +1,7 @@ |
|||
@echo off |
|||
set /p TMPUSERPASS=<userpass |
|||
set USERPASS=%TMPUSERPASS: =% |
|||
set /p PASSPHRASE=<passphrase |
|||
rem echo passphrase: "%PASSPHRASE%" |
|||
rem echo userpass: "%USERPASS%" |
|||
curl -s --url "http://127.0.0.1:7783" --data "{\"userpass\":\"%USERPASS%\",\"method\":\"bot_list\"}" |
@ -0,0 +1,7 @@ |
|||
@echo off |
|||
set /p TMPUSERPASS=<userpass |
|||
set USERPASS=%TMPUSERPASS: =% |
|||
set /p PASSPHRASE=<passphrase |
|||
rem echo passphrase: "%PASSPHRASE%" |
|||
rem echo userpass: "%USERPASS%" |
|||
curl -s --url "http://127.0.0.1:7783" --data "{\"userpass\":\"%USERPASS%\",\"method\":\"bot_statuslist\"}" |
@ -0,0 +1,7 @@ |
|||
@echo off |
|||
set /p TMPUSERPASS=<userpass |
|||
set USERPASS=%TMPUSERPASS: =% |
|||
set /p PASSPHRASE=<passphrase |
|||
rem echo passphrase: "%PASSPHRASE%" |
|||
rem echo userpass: "%USERPASS%" |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"%USERPASS%\",\"method\":\"bot_stop\",\"botid\":1376557535}" |
@ -0,0 +1,9 @@ |
|||
@echo off |
|||
rem http://pad.supernet.org/electrum-servers |
|||
set /p TMPUSERPASS=<userpass |
|||
set USERPASS=%TMPUSERPASS: =% |
|||
set /p PASSPHRASE=<passphrase |
|||
echo passphrase: "%PASSPHRASE%" |
|||
echo userpass: "%USERPASS%" |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"%USERPASS%\",\"method\":\"electrum\",\"coin\":\"KMD\",\"ipaddr\":\"electrum.cipig.net\",\"port\":10001}" |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"%USERPASS%\",\"method\":\"electrum\",\"coin\":\"MNZ\",\"ipaddr\":\"electrum.cipig.net\",\"port\":10002}" |
@ -0,0 +1,2 @@ |
|||
@echo off |
|||
curl --url "http://127.0.0.1:7783" --data "{\"method\":\"help\"}" |
After Width: | Height: | Size: 31 KiB |
@ -0,0 +1,5 @@ |
|||
@echo off |
|||
set /p TMPUSERPASS=<userpass |
|||
set USERPASS=%TMPUSERPASS: =% |
|||
set HEX=your_signed_raw_tx |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"%USERPASS%\",\"method\":\"sendrawtransaction\",\"coin\":\"KMD\",\"signedtx\":%HEX%"\"}" |
@ -0,0 +1,8 @@ |
|||
@echo off |
|||
set /p TMPUSERPASS=<userpass |
|||
set USERPASS=%TMPUSERPASS: =% |
|||
rem *** Change coin and outputs before use (!) *** |
|||
set COIN=KMD |
|||
set OUTPUTS=[{\"RDecker69MM5dhDBosUXPNTzfoGqxPQqHu\":0.00007777}] |
|||
curl -s --url "http://127.0.0.1:7783" --data "{\"userpass\":\"%USERPASS%\",\"method\":\"withdraw\",\"coin\":\"%COIN%\",\"outputs\":%OUTPUTS%}" > withdraw.txt |
|||
type withdraw.txt |
@ -0,0 +1,14 @@ |
|||
@echo off |
|||
set /p TMPUSERPASS=<userpass |
|||
set USERPASS=%TMPUSERPASS: =% |
|||
rem *** Change coin and outputs before use (!) *** |
|||
set COIN=KMD |
|||
set SMARTADDRESS=RDecker69MM5dhDBosUXPNTzfoGqxPQqHu |
|||
set OUTPUTS=[{\"%SMARTADDRESS%\":1.002},{\"%SMARTADDRESS%\":0.00386871},{\"%SMARTADDRESS%\":1.002},{\"%SMARTADDRESS%\":0.00386871},{\"%SMARTADDRESS%\":1.002},{\"%SMARTADDRESS%\":0.00386871},{\"%SMARTADDRESS%\":1.002},{\"%SMARTADDRESS%\":0.00386871},{\"%SMARTADDRESS%\":1.002},{\"%SMARTADDRESS%\":0.00386871},{\"%SMARTADDRESS%\":1.002},{\"%SMARTADDRESS%\":0.00386871},{\"%SMARTADDRESS%\":1.002},{\"%SMARTADDRESS%\":0.00386871},{\"%SMARTADDRESS%\":1.002},{\"%SMARTADDRESS%\":0.00386871},{\"%SMARTADDRESS%\":1.002},{\"%SMARTADDRESS%\":0.00386871},{\"%SMARTADDRESS%\":1.002},{\"%SMARTADDRESS%\":0.00386871}] |
|||
curl -s --url "http://127.0.0.1:7783" --data "{\"userpass\":\"%USERPASS%\",\"method\":\"withdraw\",\"coin\":\"%COIN%\",\"outputs\":%OUTPUTS%}" > withdraw.txt |
|||
type withdraw.txt |
|||
timeout /t 5 /nobreak |
|||
for /f "tokens=4 delims=:," %%a in (' find "hex" "withdraw.txt" ') do ( |
|||
rem echo [%%~a] |
|||
curl -s --url "http://127.0.0.1:7783" --data "{\"userpass\":\"%USERPASS%\",\"method\":\"sendrawtransaction\",\"coin\":\"%COIN%\",\"signedtx\":\"%%~a\"}" |
|||
) |
@ -0,0 +1,14 @@ |
|||
@echo off |
|||
set /p TMPUSERPASS=<userpass |
|||
set USERPASS=%TMPUSERPASS: =% |
|||
rem *** Change coin and outputs before use (!) *** |
|||
set COIN=KMD |
|||
set OUTPUTS=[{\"RDecker69MM5dhDBosUXPNTzfoGqxPQqHu\":0.00007777}] |
|||
curl -s --url "http://127.0.0.1:7783" --data "{\"userpass\":\"%USERPASS%\",\"method\":\"withdraw\",\"coin\":\"%COIN%\",\"outputs\":%OUTPUTS%}" > withdraw.txt |
|||
type withdraw.txt |
|||
timeout /t 5 /nobreak |
|||
for /f "tokens=4 delims=:," %%a in (' find "hex" "withdraw.txt" ') do ( |
|||
rem echo [%%~a] |
|||
curl -s --url "http://127.0.0.1:7783" --data "{\"userpass\":\"%USERPASS%\",\"method\":\"sendrawtransaction\",\"coin\":\"%COIN%\",\"signedtx\":\"%%~a\"}" |
|||
) |
|||
|
@ -1,3 +1,4 @@ |
|||
#!/bin/bash |
|||
source userpass |
|||
source passphrase |
|||
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"inventory\",\"coin\":\"KMD\",\"reset\":1,\"passphrase\":\"$passphrase\"}" |
|||
|
@ -1,3 +1,3 @@ |
|||
cd secp256k1; ./m_unix; cd .. |
|||
cd ../crypto777; ./m_LP; cd ../iguana |
|||
gcc -g -o marketmaker -I../crypto777 exchanges/mm.c mini-gmp.c secp256k1.o ../agents/libcrypto777.a -lnanomsg -lcurl -lpthread -lm |
|||
gcc -g -o marketmaker -I../crypto777 exchanges/mm.c ../crypto777/cJSON.c mini-gmp.c secp256k1.o ../agents/libcrypto777.a -lnanomsg -lcurl -lpthread -lm |
|||
|
@ -0,0 +1,47 @@ |
|||
@echo off |
|||
|
|||
@REM Check for Visual Studio |
|||
call set "VSPATH=" |
|||
if defined VS140COMNTOOLS ( if not defined VSPATH ( |
|||
call set "VSPATH=%%VS140COMNTOOLS%%" |
|||
) ) |
|||
|
|||
@REM check if we already have the tools in the environment |
|||
if exist "%VCINSTALLDIR%" ( |
|||
goto compile |
|||
) |
|||
|
|||
if not defined VSPATH ( |
|||
echo You need Microsoft Visual Studio 15 installed |
|||
pause |
|||
exit |
|||
) |
|||
|
|||
@REM set up the environment |
|||
if exist "%VSPATH%..\..\vc\vcvarsall.bat" ( |
|||
call "%%VSPATH%%..\..\vc\vcvarsall.bat" amd64 |
|||
goto compile |
|||
) |
|||
|
|||
echo Unable to set up the environment |
|||
pause |
|||
exit |
|||
|
|||
:compile |
|||
rem MSBuild /help |
|||
MSBuild marketmaker.sln /t:Rebuild /p:Configuration=Release /p:Platform=x64 |
|||
MSBuild marketmaker.sln /t:Rebuild /p:Configuration=Release /p:Platform=x86 |
|||
|
|||
rem Using to add in marketmaker_release.7z |
|||
set host=%COMPUTERNAME% |
|||
IF "%host%"=="VM-81" ( |
|||
mkdir package_content\win32 |
|||
mkdir package_content\win64 |
|||
copy /y Release\marketmaker.exe package_content\win32 |
|||
copy /y x64\Release\marketmaker.exe package_content\win64 |
|||
cd package_content |
|||
"C:\Program Files\7-Zip\7z.exe" a C:\komodo\marketmaker_release\marketmaker_release.7z win32\marketmaker.exe |
|||
"C:\Program Files\7-Zip\7z.exe" a C:\komodo\marketmaker_release\marketmaker_release.7z win64\marketmaker.exe |
|||
cd .. |
|||
rd package_content /s /q |
|||
) |
Loading…
Reference in new issue