Commit ea82bbba9fb249a99d6191087f0a11f2393816cd
Fix thing
Charles Lehner committed on 8/19/2015, 3:21:11 PMParent: b1a0d1b7679233736bc6756dcb9bdc9ca162a7ed
Files changed
getquote | changed |
getquote | ||
---|---|---|
@@ -115,10 +115,11 @@ | ||
115 | 115 | my $ticker = lc($symbol . '_' . $currency); |
116 | 116 | my $resp = json_req('https://crypto-trade.com/api/1/ticker/' . $ticker); |
117 | 117 | if ($resp and $resp->{status} eq 'success') { |
118 | 118 | 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; | |
121 | 122 | } |
122 | 123 | } |
123 | 124 | |
124 | 125 | if ($cryptostocks_markets{$symbol}) { |
Built with git-ssb-web