Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideViolante authored May 26, 2020
1 parent 5386caf commit 1d9b97a
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions README.md
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/)

0 comments on commit 1d9b97a

Please sign in to comment.