Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

update-currency-internet

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

update-currency-internet

Unofficial APIs for Investing.com website.

  • 2.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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 response1 = await investing('currencies/eur-usd')
    const response2 = await investing('currencies/eur-usd', 3600, 24, '1-day') // With optional params
  } catch (err) {
    console.error(err)
  }
}

Response

[
  { date: 1623812400000, value: 1.1093 },
  { date: 1623816000000, value: 1.1054 },
  { date: 1623819600000, value: 1.1025 },
  { date: 1623823200000, value: 1.1018 },
  ...
]

Available inputs

  • input (String) required, see mapping.js
  • interval (Number in seconds), data interval
  • candleCount (Number) Max number of results
  • period (String) time window: n-day, n-month or n-year where n is a number

Run tests

  • npm test

Run lint

  • npm run lint

Author

Contributors

Keywords

FAQs

Package last updated on 01 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc