Unofficial APIs for Investing.com website.
npm i investing-com-api
const { investing } = require('investing-com-api')
async function main () {
try {
const response = await investing('currencies/eur-usd')
} catch (err) {
console.error(err)
}
}
[
{ date: 1579651200000, value: 1.1093 },
{ date: 1579737600000, value: 1.1054 },
{ date: 1579824000000, value: 1.1025 },
{ date: 1580083200000, value: 1.1018 },
...
]
npm test
npm run lint