From 2cdcc3d53e561c2f151aac42de4bbbb45f3f310b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danilo=20Arau=CC=81jo=20Silva?= Date: Wed, 18 Oct 2023 21:31:54 +0200 Subject: [PATCH] Fixing template reference and fixing lint errors. --- src/connectors/kujira/kujira.config.ts | 9 ++++++--- src/templates/kujira.yml | 5 +++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/connectors/kujira/kujira.config.ts b/src/connectors/kujira/kujira.config.ts index 1789b9ea64..fd1a0d67f0 100644 --- a/src/connectors/kujira/kujira.config.ts +++ b/src/connectors/kujira/kujira.config.ts @@ -120,9 +120,12 @@ export namespace KujiraConfig { coinGeckoCoins: configManager.get('kujira.cache.coinGeckoCoins') || 3600, // in seconds }, coinGecko: { - coinsUrl: configManager.get('kujira.coinGecko.coinsUrl') || 'https://api.coingecko.com/api/v3/coins/list', - priceUrl: configManager.get('kujira.coinGecko.priceUrl') || - 'https://api.coingecko.com/api/v3/simple/price?ids={targets}&vs_currencies=usd', + coinsUrl: + configManager.get('kujira.coinGecko.coinsUrl') || + 'https://api.coingecko.com/api/v3/coins/list', + priceUrl: + configManager.get('kujira.coinGecko.priceUrl') || + 'https://api.coingecko.com/api/v3/simple/price?ids={targets}&vs_currencies=usd', }, }; } diff --git a/src/templates/kujira.yml b/src/templates/kujira.yml index 0d2c2b5c79..c08c3575a2 100644 --- a/src/templates/kujira.yml +++ b/src/templates/kujira.yml @@ -65,12 +65,13 @@ markets: disallowed: # Empty list means no markets are disallowed. tickers: sources: - orderBookSimpleAveragePrice: null + coinGecko: +# orderBookSimpleAveragePrice: # orderBookWeightedAveragePrice: # orderBookVolumeWeightedAveragePrice: # lastFilledOrder: coinGecko: - coinsUrl: 'https://api.coingecko.com/api/v3/coins/list' + coinsUrl: 'https://api.coingecko.com/api/v3/coins/list?x_cg_demo_api_key=' priceUrl: "https://api.coingecko.com/api/v3/simple/price?vs_currencies=usd&x_cg_demo_api_key=&ids={targets}" transactions: merge: