Skip to content

Commit

Permalink
Get quotes for GBP pairs on Coinbase
Browse files Browse the repository at this point in the history
  • Loading branch information
iLiviu committed Apr 12, 2021
1 parent b213d9e commit 6af0fe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/coinbase-quote-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class CoinbaseQuoteProvider implements QuoteProvider {
symbol = symbol.toUpperCase();
let currency = 'USD';
// generate full symbol (including base currency)
const regex = /(.+)(USD|EUR)$/g;
const regex = /(.+)(USD|EUR|GBP)$/g;
const match = regex.exec(symbol);
if (match) {
symbol = match[1] + '-' + match[2];
Expand Down

0 comments on commit 6af0fe8

Please sign in to comment.