git ssb

0+

cel / ledger-scripts



Commit cc2c8e2f19e9a0b6ebca84a67018e3c2df751517

Add FAIR (Faircoin) ticker support

Charles Lehner committed on 10/30/2015, 7:30:35 PM
Parent: 1cd94911c9b181f322211784578d7c6b2b62356b

Files changed

getquotechanged
getquoteView
@@ -93,8 +93,15 @@
9393 '€' => 'EUR',
9494 EUR => 1
9595 );
9696
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+
97104 if (my $base = $poloniex_markets{$symbol}) {
98105 my $ticker = $base . '_' . $symbol;
99106 if (my $market = json_req('https://poloniex.com/public?command=returnTicker')) {
100107 my $amount = $market->{$ticker}->{last};

Built with git-ssb-web