Skip to content

Commit

Permalink
Fixing template reference and fixing lint errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-silva-funttastic committed Oct 18, 2023
1 parent 24c504b commit 2cdcc3d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
9 changes: 6 additions & 3 deletions src/connectors/kujira/kujira.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
};
}
5 changes: 3 additions & 2 deletions src/templates/kujira.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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=<API_KEY>'
priceUrl: "https://api.coingecko.com/api/v3/simple/price?vs_currencies=usd&x_cg_demo_api_key=<API_KEY>&ids={targets}"
transactions:
merge:
Expand Down

0 comments on commit 2cdcc3d

Please sign in to comment.