Leo4815162342 / dukascopy-node

✨ Download historical price tick data for Crypto, Stocks, ETFs, CFDs, Forex via CLI and Node.js ✨
https://dukascopy-node.app
MIT License
365 stars 68 forks source link

Get all instruments list #132

Closed stenioanibal closed 1 year ago

stenioanibal commented 1 year ago

Any way to get the available instruments list?

Leo4815162342 commented 1 year ago

@stenioanibal you can get the list programmatically via:

import { Instrument } from "dukascopy-node";
// or:
// const { Instrument } = require('dukascopy-node') 

const instrumentList = Object.keys(Instrument);

Reference to the respective enum: https://github.com/Leo4815162342/dukascopy-node/blob/master/src/utils/instrument-meta-data/generated/instrument-enum.ts

You can also view available instruments by category here: https://www.dukascopy-node.app/instruments