Closed dawadam closed 4 months ago
HI @dawadam
I've added the config-based types: ConfigArrayTickItem
, ConfigArrayItem
, ConfigJsonTickItem
, ConfigJsonItem
, which are now exported from the lib. This change is available in version 1.39.3
:
Note that for format json
you'd need ConfigJsonItem
type instead of ConfigArrayItem
const configRequest: ConfigJsonItem = {
instrument: 'arcamxmxn',
priceType: 'bid',
dates: {
from: since,
to: to
},
timeframe: 'd1',
format: 'json', // <====
useCache: true,
cacheFolderPath: './cache/dukascopy',
ignoreFlats: false,
retryOnEmpty: true,
retryCount: 2
};
Hi, is it possible to expose ConfigArrayItem type in public ?
To use it to prepare parmetters outside method, like this :
Actualy message when import is :
The '"dukascopy-node"' module declares 'ConfigArrayItem' locally, but it is not exported.