kilimchoi / coingenius

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Coin conversion using Shapeshift api

kilimchoi opened this issue · comments

Summary: Users can convert from one cryptocurrency to another. e.g. Bitcoin to Ethereum

Steps required

  1. Users choose the coin that they want to send and receive. Then, they click next button.
  2. Users can specify the refund address as well as withdrawal address. Withdrawal address is for the coins that you're receiving. Refund address is for the coins that you're sending. Then, users click next. Clicking on pencil icon will redirect me to step 1.
  3. Users will be redirected to a page where they see the deposit address where they send their coins for conversion. Once users send their coins, it will update the status from "deposit received" to "exchange finished" to "all done."

For this task, I recommend using https://github.com/bogdan-sviripa/shapeshift_ruby/. We have to add an endpoint for /sendamount that accepts an argument called depositAmount which gives you how many coins of type B you will receive if you deposit x amount of coin of type A. Right now, /sendamount endpoint accepts only an argument for amount which is the withdrawal amount that you will get but you can also send an argument depositAmount which is not publicly documented.

Step 1 Visual
screenshot 2017-11-11 10 47 04

Clicking on arrow dropdown will bring up this page without refreshing.
screenshot 2017-11-11 10 49 39
Users can search for coins by their names or symbols.

Step 2 Visual
screenshot 2017-11-11 10 47 32

Step 3 Visual
screenshot 2017-11-11 10 48 29