Coder Social home page Coder Social logo

openexchange's Introduction

#OpenExchange OpenExchange is an open source cryptocurrency exchange built with Python, Flask, and Redis. It was built with the goal of having an easy to set up and extend exchange software available to all.

Status

OpenExchange has all the working core functionality. Deposits, withdrawals, exchange all work, and it is trivial to add new trade pairs and currencies to the software.

Getting Started

OpenExchange depends on having the JSONRPC, daemon, and redis modules.

####Setup

  1. Ensure Redis and all the cryptocurrency daemons (bitcoind, litecoind, etc) are up and running.
  2. Note: For development I used SQLite but change the database configuration in database.py if needed.
  3. In config.py, change the 'daemon' setting on each of the currencies to point to your daemons.
  4. Run 'python depositor.py start' and 'python worker.py start' to start the deposit/withdrawal daemons.
  5. If you just want to run the dev server, run 'python app.py' in order to start the exchange (runs on port 5000). Otherwise, you will need to configure the app to run on your webserver. Nginx + Tornado is an easy combination to get up and running for a Flask app if you have not done this before.

Developer documentation


Contact the original author at [email protected]

openexchange's People

Contributors

sb- avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openexchange's Issues

can we catch up on irc?

We are building big project and we need your help, please join us on our irc channel for further informations. #webcoin.us on freenode ;)

problem with account section

i am just trying this out for the first time. we want to use it to trade between 2 altcoins (no btc or ltc daemon). i added the required info to config.py for our 2 altcoin daemons. seems to work fine until i click on the account section:

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1836, in call
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functionsrule.endpoint
File "/home/axion/OpenExchange/app.py", line 58, in account
return account_page()
File "/home/axion/OpenExchange/app.py", line 391, in account_page
return render_template('account.html', currencies=config.get_currencies(),openorders=openorders(session['userid']),**kwargs)
File "/usr/local/lib/python2.7/dist-packages/flask/templating.py", line 128, in render_template
context, ctx.app)
File "/usr/local/lib/python2.7/dist-packages/flask/templating.py", line 110, in _render
rv = template.render(context)
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 969, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 742, in handle_exception
reraise(exc_type, exc_value, tb)
File "/home/axion/OpenExchange/templates/account.html", line 134, in top-level template code

  • {{ currencies[currency]['name'] }} - {{getbalance(currency,session['userid'])}} {{ currency.upper() }}
    File "/home/axion/OpenExchange/app.py", line 259, in getbalance
    return check_balance(c, uid)/config.get_multiplier(c)
    File "/home/axion/OpenExchange/app.py", line 251, in check_balance
    return baldict[currency]
    KeyError: 'max'

  • Help

    Can this be set up on Windows???

    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.