Post
Topic
Board Trading Discussion
Re: PHP martingale bot for satoshiDICE
by
dooglus
on 04/02/2013, 18:25:03 UTC
    BTC2 Bounty for Modding the php bot to:

    • Make the MIN_BET and MAX_BET a percentage/fraction of the current balance

    • If LOSE! use this same amount multiplied until WIN! OR MAX_BET reached

    • If WIN! send a fraction of win amount to "1XYZ1" address

    • If MAX_BET Reached, start over

    • Stop after X amount sent to "1XYZ1" address

      • OR count_won grater than XYZ2
        • OR after a WIN! and the ratio of win loses is grater than XYZ3 and a minimum of XYZ bets have been played

      Always wait for confirmed balance to avoid the larger fees.(no rush to lose everything)


    Here you go:

    https://github.com/dooglus/sdbot

    I lost about BTC1 testing it, but it seems to work pretty well.

    In the process I discovered that bitcoin's "getbalance '*' 1" lies about how much is confirmed, because it considers your change to always be confirmed, even when it isn't.  The script includes a patch to bitcoin that fixes the problem.  And if you don't want to bother rebuilding bitcoin, there's also a setting to get the script to wait for all your transactions to be confirmed each time before betting.

    My address: 135XYa4hDX8vof62UBE2zJVDwcidz52pPw[/list]