|
|
|
@ -21,7 +21,7 @@ async function fetchCoinGeckoSimplePrice() { |
|
|
|
const ids = [ |
|
|
|
const ids = [ |
|
|
|
'usd-coin', |
|
|
|
'usd-coin', |
|
|
|
'ethereum', |
|
|
|
'ethereum', |
|
|
|
'etho-protocol', |
|
|
|
'ether-1', |
|
|
|
'etica' |
|
|
|
'etica' |
|
|
|
].join(','); |
|
|
|
].join(','); |
|
|
|
|
|
|
|
|
|
|
|
@ -55,10 +55,10 @@ async function main() { |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (data['etho-protocol']) { |
|
|
|
if (data['ether-1']) { |
|
|
|
updateCachedPrice('ETHO_ETHO', { |
|
|
|
updateCachedPrice('ETHO_ETHO', { |
|
|
|
price_usd: data['etho-protocol'].usd ?? null, |
|
|
|
price_usd: data['ether-1'].usd ?? null, |
|
|
|
price_cad: data['etho-protocol'].cad ?? null, |
|
|
|
price_cad: data['ether-1'].cad ?? null, |
|
|
|
source: 'coingecko', |
|
|
|
source: 'coingecko', |
|
|
|
source_status: 'primary', |
|
|
|
source_status: 'primary', |
|
|
|
updated_at: now |
|
|
|
updated_at: now |
|
|
|
@ -81,7 +81,6 @@ async function main() { |
|
|
|
updated_pairs: ['USDC_ARB', 'ETH_ETH', 'ETHO_ETHO', 'ETI_ETICA'] |
|
|
|
updated_pairs: ['USDC_ARB', 'ETH_ETH', 'ETHO_ETHO', 'ETI_ETICA'] |
|
|
|
}, null, 2)); |
|
|
|
}, null, 2)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
main().catch(err => { |
|
|
|
main().catch(err => { |
|
|
|
console.error(`fetch_prices.js failed: ${err.message}`); |
|
|
|
console.error(`fetch_prices.js failed: ${err.message}`); |
|
|
|
process.exit(1); |
|
|
|
process.exit(1); |
|
|
|
|