Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(price-server): add IMF fiat provider for SDR/USD #31

Merged
merged 5 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions feeder/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion feeder/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@classic-terra/oracle-feeder",
"version": "3.1.1",
"version": "3.1.2",
"main": "src/index.ts",
"license": "Apache-2.0",
"scripts": {
Expand Down
39 changes: 24 additions & 15 deletions price-server/config/default-sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -518,20 +518,21 @@ module.exports = {
fiatProvider: {
fallbackPriority: [
/* Providers who requires payment to obtain API key */
// 'exchangerate',
// 'fastforex',
// 'currencylayer',
// 'fixer',
// 'alphavantage'
/* Free providers */
'exchangerate',
'imf',
'frankfurter',
'fer',
],
// https://exchangerate.host/
exchangerate: {
symbols: fiatSymbols,
interval: 30 * 1000,
timeout: 5000,
// https://www.imf.org/ For daily updates on the SDR/USD rate only.
imf: {
symbols: ['SDR/USD'],
interval: 60 * 5 * 1000,
timeout: 10000,
},
// https://fer.ee/
fer: {
Expand All @@ -545,37 +546,45 @@ module.exports = {
interval: 30 * 1000,
timeout: 5000,
},
// https://fastforex.readme.io
// price: $9/month
// https://fastforex.io
// recommended plan: $9/month
fastforex: {
symbols: fiatSymbols,
interval: 60 * 1000,
timeout: 5000,
apiKey: '', // necessary
},
// https://currencylayer.com/product
// recommend: Enterprise (60second Updates): $59.99/month
// recommended plan: Enterprise $50.99/month
currencylayer: {
symbols: fiatSymbols,
interval: 60 * 1000,
timeout: 5000,
apiKey: '', // necessary
},
// https://www.alphavantage.co/premium/
// recommend: 150 API request per minute: $99.99/month
alphavantage: {
// https://exchangerate.host/
// recommended plan: Business $79.99/month
exchangerate: {
symbols: fiatSymbols,
interval: 60 * 1000,
interval: 30 * 1000,
timeout: 5000,
apiKey: '', // necessary
apiKey: '', // required
},
// https://fixer.io/product
// recommend: professional plus(60second Updates): $99.99/month
// recommend plan: professional plus(60second Updates): $79.99/month
fixer: {
symbols: fiatSymbols,
interval: 60 * 1000,
timeout: 5000,
apiKey: '', // necessary
},
// https://www.alphavantage.co/premium/
// recommend plan: 150 API request per minute: $99.99/month
alphavantage: {
symbols: fiatSymbols,
interval: 60 * 1000,
timeout: 5000,
apiKey: '', // necessary
},
},
}
Loading
Loading