git ssb

0+

cel / ledger-scripts



Commit 6d582dbad9c458fe3686a9701278abbc3353914e

Add more rateexchange currencies

Charles Lehner committed on 11/8/2015, 3:28:12 PM
Parent: 96d82d9659c1215f041747041e3ef3ae75f7e613

Files changed

README.mdchanged
getquotechanged
README.mdView
@@ -100,9 +100,9 @@
100100
101101 Covers:
102102
103103 BTC, altcoins, gold, silver, Havelock Investments, CryptoStocks,
104-and NASDAQ.
104+NASDAQ, and sovereign currencies.
105105
106106 #### gethistoric
107107
108108 Get past quotes for BTC/USD, using BitcoinAverage's API.
getquoteView
@@ -90,9 +90,20 @@
9090 );
9191
9292 my %rateexchange_markets = (
9393 '€' => '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,
95106 );
96107
97108 if ($symbol eq 'FAIR') {
98109 if (my $market = json_req('https://getfaircoin.net/api/ticker')) {

Built with git-ssb-web