Debugging

Debugging

The library ships with a built-in debug (opens in a new tab) module.

To enable debugging add DEBUG=dukascopy-node:* environment variable to your execution code.

For CLI calls, add -d flag :

npx dukascopy-node -i usdjpy -from 2022-03-21 -to 2022-03-22 -t m1 -d

or alternatively prepend DEBUG=dukascopy-node:cli:*:

DEBUG=dukascopy-node:cli:* npx dukascopy-node -i usdjpy -from 2022-03-21 -to 2022-03-22 -t m1

example of debugging output