Run from a new project folder:
curl https://gist.githubusercontent.com/eezing/6aa3b59137260916ea7fdd4040faa72a/raw/node-starter.sh | sh
/** | |
* purzi's Martingale bot V0.1 | |
*/ | |
const baseBet = 200 // how many satoshis to bet initially | |
const target = 2.75 // target multiplier | |
const betMultiplier = 1.7 // what to multiply the bet size by when we lose a wager | |
const maxBet = 200000 // Maximum bet in satoshis | |
var bet |
const baseBet = 1 | |
const baseTarget = 1.30 | |
const betMultiplier = 5 | |
const stopGameAfterLoss = 2 /* Trigger will lead to drop/stop script */ | |
const dropInsteadOfStopScript = true /* stop script or drop losses and continue play */ | |
const changeSeed = 3 /* How much losses obtain, and then change seed to decrease chance of big streak, 0 to disable */ | |
const lossTarget = 1.1 | |
const lossRepeatTimes = 3 | |
let lossCount = 0 |
var config = { | |
//******************COMMON****************** */ | |
PASTE_CASE: { label: "Paste", type: "text", value: "Paste raw text [see F12]" }, | |
cb_globals: { | |
label: "Sandbox", type: "radio", value: "sandbox_mode", options: { | |
sandbox_mode: { label: "Sandbox Mode (if you set it to true will trigger below configuration to be used)", type: "noop", value: "" }, | |
SETUP: { label: "Configuration Launch Case", type: "number", value: 0 }, | |
merged: { label: "Run both in sandbox and configuration launch", type: "noop", value: "" }, | |
} |
This gist shows and example or an asynchronous multiprocess task broker which can take job requests and report on running jobs via a minimal REST API.
Adapted from https://gist.github.com/nitaku/10d0662536f37a087e1b
All of the caveats from the original author still apply.