Skip to content

Commit

Permalink
docs: basic examples with CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo4815162342 committed May 7, 2022
1 parent 7eabcd9 commit 1673d3c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions examples/basic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ const { getHistoricRates } = require('dukascopy-node');
}
})();
```

or via CLI:

```bash
npx dukascopy-cli -i eurusd -from 2021-02-01 -to 2021-03-01 -t d1 -f array
```

Output shape:

```json
Expand Down Expand Up @@ -63,6 +70,12 @@ const { getHistoricRates } = require('dukascopy-node');
})();
```

or via CLI:

```bash
npx dukascopy-cli -i eurusd -from 2021-02-01 -to 2021-03-01 -t d1 -f json
```

Output shape:

```json
Expand Down Expand Up @@ -107,6 +120,12 @@ const { getHistoricRates } = require('dukascopy-node');
})();
```

or via CLI:

```bash
npx dukascopy-cli -i eurusd -from 2021-02-01 -to 2021-03-01 -t d1 -f csv
```

Output shape:

```
Expand Down

0 comments on commit 1673d3c

Please sign in to comment.