-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5386caf
commit 1d9b97a
Showing
1 changed file
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,28 @@ | ||
# investing-com-api | ||
Unofficial APIs for Investing.com website. | ||
# Investing.com unofficial APIs ![Node.js CI](https://github.com/DavideViolante/investing-com-api/workflows/Node.js%20CI/badge.svg) [![Donate](https://img.shields.io/badge/paypal-donate-179BD7.svg)](https://www.paypal.me/dviolante) | ||
|
||
Unofficial APIs wrapper for Investing.com website. | ||
|
||
### Install | ||
`npm i investing-com-api` | ||
|
||
### Example | ||
```js | ||
const investing = require('investing-com-api') | ||
const response = investing('<pairId>') // pairId identifies the data to get, see below | ||
// response = [ { date: Timestamp, value: Number }, {...}, ... ] | ||
``` | ||
|
||
### How to find pairId | ||
1. Go to investing.com page where there is the chart of your interest | ||
2. View the page source and find `pairId:` | ||
3. Use the pairId as a String to call the APIs | ||
|
||
|
||
### Run tests | ||
- `npm test` | ||
|
||
### Run lint | ||
- `npm run lint` | ||
|
||
### Author | ||
- [Davide Violante](https://github.com/DavideViolante/) |