{"_id":"@abcb-cafe/investing-com-api","name":"@abcb-cafe/investing-com-api","dist-tags":{"latest":"4.3.0-a"},"versions":{"4.3.0-a":{"name":"@abcb-cafe/investing-com-api","version":"4.3.0-a","description":"Unofficial APIs for Investing.com website.","main":"index.js","scripts":{"lint":"eslint ./","test":"jest","coverage":"jest --coverage"},"repository":{"type":"git","url":"git+https://github.com/DavideViolante/investing-com-api.git"},"keywords":["investing","api","investing.com","finance","markets","nasdaq","futures","currency","exchange","etf"],"author":{"name":"Davide Violante"},"license":"MIT","bugs":{"url":"https://github.com/DavideViolante/investing-com-api/issues"},"homepage":"https://github.com/DavideViolante/investing-com-api#readme","jest":{"coveragePathIgnorePatterns":["functions.js"]},"dependencies":{"puppeteer":"^19.2.2"},"devDependencies":{"eslint":"^8.27.0","eslint-config-google":"^0.14.0","jest":"^29.3.1","jest-puppeteer":"^6.1.1"},"types":"./index.d.ts","gitHead":"a5c40731858e74db5d5edc51ec43e258d14b41aa","_id":"@abcb-cafe/investing-com-api@4.3.0-a","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-O6Dm5DL9Sj1csEHshnd+zvj5WVC6S6yXXtxx8HPvnDsN8Zh1HiFDjTgytI+dZ3+tMRdGIUqp1UlyzSWyuG4SAw==","shasum":"dc23362ea011bf05f6013563cde9fa7ecb23074b","tarball":"https://registry.npmjs.org/@abcb-cafe/investing-com-api/-/investing-com-api-4.3.0-a.tgz","fileCount":13,"unpackedSize":41383,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGasgiQrg6wxpiw6gwwumRjcv7wl3wm3iU4NOU11E8rzAiEA7z/bcJKSdOiSvE3JX2DpJhaqn2PvOmvrwxBVCwD+zO0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjcEK5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqCzw/8DNFBH6n6lugSaiyvQYpzKXABdK3AouZF05pH0ti9+yuOR/80\r\nrWz92s+uWRJtu5oG+qQvQh4gbv7FMUGB5/PkA3FUyaPcEyQAu6nahWMEtOFV\r\nR5Alf+cOkOgkyZJW65bXD5WQ8unLu8drluv+HpBHlPgjmTDsI4KKIb7UN/bL\r\nJijAet0J0D/q6VBYbP5EExEs3YUIN3OwdY9CBcKhH2IfIiTYnAsS6h2/4ieM\r\nYApgSsXWTTPUi6DEixPKx9h/Ba0bLAFFjWrwVYz4bWxHIZl+fhcFmT9XhXq8\r\nfN3ZS5e9iLugrlQ/H6ge55tOfsqBUwkp7TrpkPRZezzrq/X96Are3mX4P3US\r\n/jjjgx6hZeh6gN5cPGBd0PI1ajXMrQ4Za05qLX0iaOT3nQysvC77hbixZ3+W\r\nH0FkmQeDCeZuM6eRXAm6NhR6eQmMtW1ajpDyd2Evbv1EgnrENjAG9tuesvI1\r\np8MAywCe7XzUKYvbGahWjLryUw49y60RHL/jzaUTkZY50aBFmzq5Kt4zluXc\r\nmGOMwmICeByU862DM7yNZ+ci61RJ7f+MBR7ceWsDxRHSQsNuZu6Yyy12GKSC\r\nCG+Ewo9oiSXhTOCm4v/czExbPCJTBfx3sSk2VeQdSdbL4g1GMybo15sTfsDq\r\nJkqCjItedXKjIh963z0Uw+9RtbQ5aUV7/7I=\r\n=1E5L\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"jimmyhwang","email":"jimmyhwang.tw@gmail.com"},"directories":{},"maintainers":[{"name":"jimmyhwang","email":"jimmyhwang.tw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/investing-com-api_4.3.0-a_1668301497035_0.8902982609788039"},"_hasShrinkwrap":false}},"time":{"created":"2022-11-13T01:04:56.980Z","4.3.0-a":"2022-11-13T01:04:57.222Z","modified":"2022-11-13T01:04:57.373Z"},"maintainers":[{"name":"jimmyhwang","email":"jimmyhwang.tw@gmail.com"}],"description":"Unofficial APIs for Investing.com website.","homepage":"https://github.com/DavideViolante/investing-com-api#readme","keywords":["investing","api","investing.com","finance","markets","nasdaq","futures","currency","exchange","etf"],"repository":{"type":"git","url":"git+https://github.com/DavideViolante/investing-com-api.git"},"author":{"name":"Davide Violante"},"bugs":{"url":"https://github.com/DavideViolante/investing-com-api/issues"},"license":"MIT","readme":"# Investing.com Unofficial APIs\r\n[![](https://github.com/davideviolante/investing-com-api/workflows/Node.js%20CI/badge.svg)](https://github.com/DavideViolante/investing-com-api/actions?query=workflow%3A\"Node.js+CI\") [![Coverage Status](https://coveralls.io/repos/github/DavideViolante/investing-com-api/badge.svg?branch=master)](https://coveralls.io/github/DavideViolante/investing-com-api?branch=master) [![Maintainability](https://api.codeclimate.com/v1/badges/ce48adbd97ff85557918/maintainability)](https://codeclimate.com/github/DavideViolante/investing-com-api/maintainability) ![npm](https://img.shields.io/npm/dm/investing-com-api)  [![Donate](https://img.shields.io/badge/paypal-donate-179BD7.svg)](https://www.paypal.me/dviolante)\r\n\r\n[![NPM](https://nodei.co/npm/investing-com-api.png)](https://nodei.co/npm/investing-com-api/)\r\n\r\nUnofficial APIs for Investing.com website.\r\n\r\n### Install\r\n`npm i investing-com-api`\r\n\r\n### Example\r\n```js\r\nconst { investing } = require('investing-com-api');\r\n\r\nasync function main() {\r\n  try {\r\n    const response1 = await investing('currencies/eur-usd'); // Providing a valid mapping.js key\r\n    const response2 = await investing('currencies/eur-usd', 'P1M', 'P1D'); // With optional params\r\n    const response3 = await investing('1'); // Providing the pairId directly, even if not present in mapping.js\r\n  } catch (err) {\r\n    console.error(err);\r\n  }\r\n}\r\n```\r\n\r\n### Response\r\n```js\r\n[\r\n  {\r\n    date: 1659398400000,\r\n    value: 1.0264,\r\n    price_open: 1.0264,\r\n    price_high: 1.0294,\r\n    price_low: 1.0155,\r\n    price_close: 1.0157\r\n  },\r\n  {\r\n    date: 1659484800000,\r\n    value: 1.0158,\r\n    price_open: 1.0158,\r\n    price_high: 1.0209,\r\n    price_low: 1.0126,\r\n    price_close: 1.0136\r\n  },\r\n  ...\r\n]\r\n```\r\n\r\n\r\n### Inputs\r\nOnly input is required, other params are optional.\r\n- **input** _String_: input string, see [mapping.js](https://github.com/DavideViolante/investing-com-api/blob/master/mapping.js) keys, or provide a valid investing.com pairId. (Required)\r\n- **period** _String_: Period of time, window size. Default P1M (1 month). Valid values: P1D, P1W, P1M, P3M, P6M, P1Y, P5Y, MAX.\r\n- **interval** _Number_: Interval between results. Default P1D (1 day). Valid values: PT1M, PT5M, PT15M, PT30M, PT1H, PT5H, P1D, P1W, P1M.\r\n- **pointscount** _Number_: number of total results. Valid values seems to be 60, 70 or 120.\r\n\r\n### Run tests\r\n`npm test`\r\n\r\n### Run lint\r\n`npm run lint`\r\n\r\n### Contribute\r\nPRs are welcome to add more elements to the [mapping.js](https://github.com/DavideViolante/investing-com-api/blob/master/mapping.js) file.\r\n\r\n### Author\r\n- [Davide Violante](https://github.com/DavideViolante/)\r\n","readmeFilename":"README.md"}