Update Readme, add BCH (#120)

This commit is contained in:
Jonas-Taha El Sesiy 2017-08-09 14:25:29 -05:00 committed by Alex Epstein
parent 4cc8703448
commit 7c8d5f94b2
2 changed files with 12 additions and 5 deletions

View File

@ -90,9 +90,15 @@ Converts Cryptocurrency based on realtime exchange rates
</div> </div>
If you want to bypass to guided input you can pass in 3 arguments and it will run from there Run `cryptocurrency` and you'll be guided through providing three arguments.
ex.```currency [baseCurrency] [exchangeToCurrency] [amountBeingExchanged]``` 1. Base currency, i.e. `BTC`
so a valid use case would be ```currency BTC USD 12.35``` 2. Target currency, i.e. `USD`
3. Amount, i.e. `12.35`
If you want to bypass the guided input you can pass in 3 arguments and it will run from there, i.e.
```cryptocurrency [baseCurrency] [exchangeToCurrency] [amountBeingExchanged]```
A valid use case would be:
```cryptocurrency BTC USD 12.35```
Written by: [Jonas-Taha El Sesiy](https://github.com/elsesiy) Written by: [Jonas-Taha El Sesiy](https://github.com/elsesiy)
</details> </details>

View File

@ -40,7 +40,7 @@ checkValidCurrency()
if [[ $1 != "BTC" && $1 != "ETH" \ if [[ $1 != "BTC" && $1 != "ETH" \
&& $1 != "XRP" && $1 != "LTC" && $1 != "XEM" \ && $1 != "XRP" && $1 != "LTC" && $1 != "XEM" \
&& $1 != "ETC" && $1 != "DASH" && $1 != "MIOTA" \ && $1 != "ETC" && $1 != "DASH" && $1 != "MIOTA" \
&& $1 != "XMR" && $1 != "STRAT" ]]; then && $1 != "XMR" && $1 != "STRAT" && $1 != "BCH" ]]; then
echo "1" echo "1"
else else
echo "0" echo "0"
@ -101,6 +101,7 @@ transformBase()
"MIOTA") reqId="iota" ;; "MIOTA") reqId="iota" ;;
"XMR") reqId="monero" ;; "XMR") reqId="monero" ;;
"STRAT") reqId="stratis" ;; "STRAT") reqId="stratis" ;;
"BCH") reqId="bitcoin-cash" ;;
esac esac
} }
@ -248,7 +249,7 @@ Supported Base Currencies:
___________________________ ___________________________
| BTC | ETH | XRP | LTC | | BTC | ETH | XRP | LTC |
| XEM | ETC | DASH | MIOTA | | XEM | ETC | DASH | MIOTA |
| XMR | STRAT | | XMR | STRAT | BCH |
___________________________ ___________________________
Supported Target Currencies: Supported Target Currencies: