Commit cc2c8e2f19e9a0b6ebca84a67018e3c2df751517
Add FAIR (Faircoin) ticker support
Charles Lehner committed on 10/30/2015, 7:30:35 PMParent: 1cd94911c9b181f322211784578d7c6b2b62356b
Files changed
getquote | changed |
getquote | ||
---|---|---|
@@ -93,8 +93,15 @@ | ||
93 | 93 | '€' => 'EUR', |
94 | 94 | EUR => 1 |
95 | 95 | ); |
96 | 96 | |
97 | + if ($symbol eq 'FAIR') { | |
98 | + if (my $market = json_req('https://getfaircoin.net/api/ticker')) { | |
99 | + my $amount = $market->{USD}->{last}; | |
100 | + return '$' . $amount; | |
101 | + } | |
102 | + } | |
103 | + | |
97 | 104 | if (my $base = $poloniex_markets{$symbol}) { |
98 | 105 | my $ticker = $base . '_' . $symbol; |
99 | 106 | if (my $market = json_req('https://poloniex.com/public?command=returnTicker')) { |
100 | 107 | my $amount = $market->{$ticker}->{last}; |
Built with git-ssb-web