From 4a71ed4c89361d090c453f0019ab710c53058633 Mon Sep 17 00:00:00 2001 From: Procrastinator Date: Thu, 29 Jun 2017 16:43:21 -0400 Subject: [PATCH] Add GBP --- bots/pricebot.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bots/pricebot.js b/bots/pricebot.js index 944cc93..0f845f1 100644 --- a/bots/pricebot.js +++ b/bots/pricebot.js @@ -9,13 +9,15 @@ var options = { // supported currencies and api steps to arrive at the final value currencies: { USD: { steps: ['LBCBTC', 'BTCUSD'], format: '$0,0.00' }, + GBP: { steps: ['LBCBTC', 'BTCGBP'], format: '£0,0.00' }, BTC: { steps: ['LBCBTC'], format: '0,0[.][00000000] BTC' } }, // api steps api: { LBCBTC: { url: 'https://bittrex.com/api/v1.1/public/getticker?market=BTC-LBC', path: '$.result.Bid' }, - BTCUSD: { url: 'https://blockchain.info/ticker', path: '$.USD.buy' } + BTCUSD: { url: 'https://blockchain.info/ticker', path: '$.USD.buy' }, + BTCGBP: { url: 'https://blockchain.info/ticker', path: '$.GBP.buy' } }, // display date/time format