Commit 6d582dbad9c458fe3686a9701278abbc3353914e
Add more rateexchange currencies
Charles Lehner committed on 11/8/2015, 3:28:12 PMParent: 96d82d9659c1215f041747041e3ef3ae75f7e613
Files changed
README.md | changed |
getquote | changed |
README.md | ||
---|---|---|
@@ -100,9 +100,9 @@ | ||
100 | 100 | |
101 | 101 | Covers: |
102 | 102 | |
103 | 103 | BTC, altcoins, gold, silver, Havelock Investments, CryptoStocks, |
104 | -and NASDAQ. | |
104 | +NASDAQ, and sovereign currencies. | |
105 | 105 | |
106 | 106 | #### gethistoric |
107 | 107 | |
108 | 108 | Get past quotes for BTC/USD, using BitcoinAverage's API. |
getquote | ||
---|---|---|
@@ -90,9 +90,20 @@ | ||
90 | 90 | ); |
91 | 91 | |
92 | 92 | my %rateexchange_markets = ( |
93 | 93 | '€' => 'EUR', |
94 | - EUR => 1 | |
94 | + '£' => 'GBP', | |
95 | + '¥' => 'JPY', | |
96 | + EUR => 1, | |
97 | + GBP => 1, | |
98 | + JPY => 1, | |
99 | + CAD => 1, | |
100 | + HKD => 1, | |
101 | + MXN => 1, | |
102 | + INR => 1, | |
103 | + DKK => 1, | |
104 | + CNY => 1, | |
105 | + RUB => 1, | |
95 | 106 | ); |
96 | 107 | |
97 | 108 | if ($symbol eq 'FAIR') { |
98 | 109 | if (my $market = json_req('https://getfaircoin.net/api/ticker')) { |
Built with git-ssb-web