Coin conversion using Shapeshift api
kilimchoi opened this issue · comments
Kilim Choi commented
Summary: Users can convert from one cryptocurrency to another. e.g. Bitcoin to Ethereum
Steps required
- Users choose the coin that they want to send and receive. Then, they click next button.
- 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.
- 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.
Kilim Choi commented
Kilim Choi commented
Kilim Choi commented