{"id":18492531,"url":"https://github.com/makevoid/bitcoin_exchange","last_synced_at":"2025-07-03T15:36:55.947Z","repository":{"id":39704499,"uuid":"21321725","full_name":"makevoid/bitcoin_exchange","owner":"makevoid","description":"Bitcoin/Crypto exchange prototype project written in ruby / sinatra in 2014 - Status: UI \u0026 routes done - full order matching is not complete","archived":false,"fork":false,"pushed_at":"2023-01-20T14:03:06.000Z","size":1390,"stargazers_count":3,"open_issues_count":14,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T11:18:17.201Z","etag":null,"topics":["2014","bitcoin-exchange","bitcoind","css","fast","haml","limit-order","orderbook","poc","redis","ruby","sinatra"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/makevoid.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-29T11:15:07.000Z","updated_at":"2023-02-16T22:45:12.000Z","dependencies_parsed_at":"2023-01-23T19:31:11.998Z","dependency_job_id":null,"html_url":"https://github.com/makevoid/bitcoin_exchange","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makevoid%2Fbitcoin_exchange","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makevoid%2Fbitcoin_exchange/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makevoid%2Fbitcoin_exchange/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makevoid%2Fbitcoin_exchange/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/makevoid","download_url":"https://codeload.github.com/makevoid/bitcoin_exchange/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247931299,"owners_count":21020211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["2014","bitcoin-exchange","bitcoind","css","fast","haml","limit-order","orderbook","poc","redis","ruby","sinatra"],"created_at":"2024-11-06T13:08:24.253Z","updated_at":"2025-04-08T21:31:13.277Z","avatar_url":"https://github.com/makevoid.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"##### This is an old proof-of-concept\n\n# See: Newer projects on http://makevoid.com\n\n### Bitcoin Related\n\n### BlockchainPen\n\n## http://github.com/makevoid/blockchain-pen - http://blockchainpen.com\n\n### Paperbank - paper wallet generator:\n\n## http://github.com/makevoid/paperbank - http://paperbank.it\n\n## http://github.com/makevoid/paperbank_pocket - http://pocket.paperbank.it\n## http://github.com/makevoid/blockchain_explorer\n## http://github.com/720kb/BitNFC - http://bitnfc.org\n\n\n### Ethereum Related\n\n## http://github.com/appliedblockchain/bapp\n\n\n\n\n---\n\nOriginal Readme:\n\n#### Bitcoin Exchange\n\n### powered by Ruby, Redis and Sinatra\n\nproof of concept\n\nstatus: under development\n\n\n### current implementation idea\n\nuse client polling to try to submit order, otherwise raise exception: { error: \"polling\", message: \"please resubmit in previous request in 1s\" }\n\nthis semplifies the concept of exchange and\n\nin the future consider implementing a redis based queue system with minimal overhead, but right now let the client do the dirty job ;)\n\n\n### prerequisites\n\n- redis (launched on default port)\n- bitcoind\n- libcurl (`apt-get install libcurl3 libcurl3-gnutls libcurl4-openssl-dev` on debian/ubuntu)\n\n### development\n\nlaunch the app:\n\n    rackup -p 3000\n\ndev mode:\n\n    rerun -p \"**/*.{rb}\" -- rackup -p 3000\n\n\n### install notes\n\nyou need to install ruby (better 2.1, from source possibly, or via rvm), then\n\n    gem install bundler\n\ninto the project directory\n\n    bundle install\n\n\nthen follow the instructions to install bitcoind (bitcoin core - github.com/bitcoin/bitcoin)\ncopy config/bitcoin.conf.sample to ~/.bitcoin/bitcoin.conf (if in osx, look at the default location mentioned above)\n\nrun bitcoind\n\ncreate a mysql database (named bitcoin_exchange), you may edit db configs in config/env.rb\n\n\nthen run (to create mysql tables)\n\n    ruby lib/tasks/migrate.rb\n\nto start the app\n\n    rackup\n\nand connect to http://localhost:9292\n\n### bitcoin - osx\n\nosx bitcoin.conf locaiton:\n\n    /Users/USER/Library/Application Support/Bitcoin/bitcoin.conf\n\nsymlink:\n\n    mkdir -p ~/.bitcoin\n    ln -s \"/Users/USER/Library/Application Support/Bitcoin/bitcoin.conf\" ~/.bitcoin/\n\n# development notes\n\n\"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 \u003cusername\u003e).  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)\n\" \u003e Satoshi\n\nhttps://bitcointalk.org/index.php?topic=417.msg3579#msg3579\n\n### running specs\n\n    rspec\n\n\n### security notes\n\nhttps://bitcointalk.org/index.php?topic=434.msg3770#msg3770\n\n\n### useful fontawesome icons\n\nfa-bank\nfa-dashboard\nfa-money\nfa-exchange\nfa-laptop\nfa-life-ring\nfa-question\nfa-qrcode\nfa-refresh\nfa-sign-out\nfa-suitcase\n\n##\n\n\n- stop order\n\n```ruby\nwatch -\u003e\n  if prezzo == x\n    metti ordine limit(prezzo_y)\n```\n\n\n- trailing stop\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakevoid%2Fbitcoin_exchange","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmakevoid%2Fbitcoin_exchange","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakevoid%2Fbitcoin_exchange/lists"}