See: Newer projects on http://makevoid.com
Original Readme:
proof of concept
status: under development
use client polling to try to submit order, otherwise raise exception: { error: "polling", message: "please resubmit in previous request in 1s" }
this semplifies the concept of exchange and
in the future consider implementing a redis based queue system with minimal overhead, but right now let the client do the dirty job ;)
- redis (launched on default port)
- bitcoind
- libcurl (
apt-get install libcurl3 libcurl3-gnutls libcurl4-openssl-dev
on debian/ubuntu)
launch the app:
rackup -p 3000
dev mode:
rerun -p "**/*.{rb}" -- rackup -p 3000
you need to install ruby (better 2.1, from source possibly, or via rvm), then
gem install bundler
into the project directory
bundle install
then follow the instructions to install bitcoind (bitcoin core - github.com/bitcoin/bitcoin) copy config/bitcoin.conf.sample to ~/.bitcoin/bitcoin.conf (if in osx, look at the default location mentioned above)
run bitcoind
create a mysql database (named bitcoin_exchange), you may edit db configs in config/env.rb
then run (to create mysql tables)
ruby lib/tasks/migrate.rb
to start the app
rackup
and connect to http://localhost:9292
osx bitcoin.conf locaiton:
/Users/USER/Library/Application Support/Bitcoin/bitcoin.conf
symlink:
mkdir -p ~/.bitcoin
ln -s "/Users/USER/Library/Application Support/Bitcoin/bitcoin.conf" ~/.bitcoin/
"When a user is logged in to their account, you show the bitcoin address they can send to to add funds. Before showing it, you check if it's been used, if it has then you replace it with a new one (getnewaddress ). You only need to keep the latest bitcoin address for the account in your database. (I posted a sample code fragment for this in an earlier thread somewhere, search on getnewaddress) " > Satoshi
https://bitcointalk.org/index.php?topic=417.msg3579#msg3579
rspec
https://bitcointalk.org/index.php?topic=434.msg3770#msg3770
fa-bank fa-dashboard fa-money fa-exchange fa-laptop fa-life-ring fa-question fa-qrcode fa-refresh fa-sign-out fa-suitcase
- stop order
watch ->
if prezzo == x
metti ordine limit(prezzo_y)
- trailing stop