-
-
Save alersenkevich/0a0511731f0cbb1e1231a89e858207e4 to your computer and use it in GitHub Desktop.
parsing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const nominals = ['BTC', 'ETH', 'USD']; | |
const timeIntervals = ['1m', '5m', '15m', '1h', '4h', '1d']; | |
const loadingResult = await Promise.all(nominals.map( | |
(nominal, nominalKey) => Promise.all(timeIntervals.map( | |
(interval, intervalKey) => models[`Price${interval + nominal}`] | |
.bulkCreate(comparedSplittedPrices[nominalKey][intervalKey]), | |
)), | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment