Commit 96d82d9659c1215f041747041e3ef3ae75f7e613
Fix rate-exchange
Charles Lehner committed on 11/8/2015, 2:42:58 PMParent: a175096b83d9b3008dc5b2a06b16c310b92b63b4
Files changed
getquote | changed |
getquote | ||
---|---|---|
@@ -137,11 +137,11 @@ | ||
137 | 137 | if ($rateexchange_markets{$symbol}) { |
138 | 138 | if ($rateexchange_markets{$symbol} != 1) { |
139 | 139 | $symbol = $rateexchange_markets{$symbol}; |
140 | 140 | } |
141 | - if (my $info = json_req('http://rate-exchange.appspot.com/currency?to=USD&from=' . $symbol)) { | |
142 | - if ($info and $info->{rate}) { | |
143 | - return '$' . $info->{rate}; | |
141 | + if (my $info = json_req('https://rate-exchange.herokuapp.com/fetchRate?to=USD&from=' . $symbol)) { | |
142 | + if ($info and $info->{Rate}) { | |
143 | + return '$' . $info->{Rate}; | |
144 | 144 | } |
145 | 145 | } |
146 | 146 | } |
147 | 147 |
Built with git-ssb-web