/investing-com-api

Unofficial APIs for Investing.com website.

Primary LanguageJavaScriptMIT LicenseMIT

Investing.com unofficial APIs

Coverage Status Maintainability Donate

Unofficial APIs for Investing.com website.

Install

npm i investing-com-api

Example

const { investing } = require('investing-com-api')

async function main () {
  try {
    const response = await investing('currencies/eur-usd')
  } catch (err) {
    console.error(err)
  }
}

Response

[
  { date: 1579651200000, value: 1.1093 },
  { date: 1579737600000, value: 1.1054 },
  { date: 1579824000000, value: 1.1025 },
  { date: 1580083200000, value: 1.1018 },
  ...
]

Available inputs

Run tests

  • npm test

Run lint

  • npm run lint

Author