Mtgox trade bot
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
bot.py
mtgox.py
stoploss.py
test.py

README.md

businesscat

Mtgox trade bot

To run

Create a file named key.py with your key and secret inside:

key = 'XXX'
secret = 'XXXXXX'

Then, edit the user parameters in bot.py:

target_price = 126.381 # USD/BTC
percent_change = 0.03 # percent change at which to do the opposite action
action = 'selling' # start with buying
amount = 1.00 # amount of BTC to play with

Run the script using "python bot.py". With the parameters above, it will wait until the ask price is 126.381 and then put in a sell order for 1.00 BTC at 126.381 USD/BTC. Next it will adjust the target price so that it is 97% of 126.381 and switch to "buying" mode. It then waits 60 seconds and repeats.

Todo

  • add exception handling to mtgox requests
  • consolidate buy/sell code?
  • check to see if previous order fulfilled
  • use floating orders?
  • add trend checking?
  • convert to Python3?

References