git ssb

0+

cel / ledger-scripts



Commit ea82bbba9fb249a99d6191087f0a11f2393816cd

Fix thing

Charles Lehner committed on 8/19/2015, 3:21:11 PM
Parent: b1a0d1b7679233736bc6756dcb9bdc9ca162a7ed

Files changed

getquotechanged
getquoteView
@@ -115,10 +115,11 @@
115115 my $ticker = lc($symbol . '_' . $currency);
116116 my $resp = json_req('https://crypto-trade.com/api/1/ticker/' . $ticker);
117117 if ($resp and $resp->{status} eq 'success') {
118118 my $data = $resp->{data};
119- return $data->{last} || ($data->{min_ask} + $data->{max_bid}) / 2;
120- $price .= ' ' . $currency;
119+ my $price = $data->{last} ||
120+ ($data->{min_ask} + $data->{max_bid}) / 2;
121+ return $price . ' ' . $currency;
121122 }
122123 }
123124
124125 if ($cryptostocks_markets{$symbol}) {

Built with git-ssb-web