Skip to content

torusJKL/bitcoin_dealer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitcoin dealer

Bitcoin dealer is simple Django script for trading bitcoins currently only on MtGox exchange. Currently only API version 0 is supported, which will be deprecated on 1th of March, but new API support should be available before that date. :)

Script is most useful for those who do not have time to watch price of bitcoin all the time, have a PC running all the time and know how to write few "Hello worlds" with two if cases.

Installation

  • mtgox_username = 'your mtgox user'
  • mtgox_password = 'your mtgox pass'
  • mtgox_key = 'you get this in mtgox admin page'
  • mtgox_secret = 'you get this also in mtgox admin page'
  • check_interval = 7
  • bd_debug = True
  • "exchange" into INSTALLED_APPS
  • Set DEBUG to True in settings.py and set TEMPLATE_DEBUG to DEBUG.
  • Start trading script with in root bitcoin dealer folder like: python -u scripts/dealing.py
  • Start webserver in root bicoin dealer folder like: python manage.py runserver 8000
  • Goto http://127.0.0.1:8000/admin/ and trade.

Troubleshooting

If paths for running script cannot be found and you get errors, set following variables:

export DJANGO_SETTINGS_MODULE=bitcoin_dealer.settings

export PYTHONPATH=/your_path_to_one_path_less_than_bitcoin_dealer/

bitcoin_dealer is the name of the folder you have cloned this project. If you have bitcoin_dealer in /programs/bitcoin_dealer/ then you should export PYTHONPATH=/programs/.

Info

Right now you should not change status of trades, since it is not fully implemented (but it will have effect on other related trades if you change status from selling to sold for example). Just leave it as it is. If you would cancel trade, just uncheck active checkbox, but be careful to deactivate related first.

WARNING

Watch out, settings.py should be accessible only to you, your account and with your permissions.

Script works correctly only if you have enough funds (bitcoins, $, €, ...) on your MtGox account.

You like this little script, you find it useful or want new feature?

You can donate a bitcoin or few on: 1MC1BSkwD45gAuQ8mvXtD1RZWhNtxGV1ho

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published