Coder Social home page Coder Social logo

bitcoin_dealer's Introduction

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

bitcoin_dealer's People

Contributors

rokj avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.