NY Cocoa
Download historical market price data for NY Cocoa cocoacmdusd
Earliest available data
Timeframe | Earliest available data (UTC) |
---|---|
tick , s1 | |
m1 , m5 , m15 , m30 | |
h1 , h4 | |
d1 , mn1 |
Examples
CLI
npx dukascopy-node -i cocoacmdusd -from 2024-03-19 -to 2024-03-20 -t m1 -f csv
Node.js
const { getHistoricalRates } = require("dukascopy-node");
(async () => {
const historicalRates = await getHistoricalRates({
instrument: "cocoacmdusd",
dates: {
from: new Date("2024-03-19"),
to: new Date("2023-01-12"),
},
timeframe: "m1",
});
console.log(historicalRates);
})();
Sample output files
JSON (array): cocoacmdusd-2024-03-19-2024-03-20-m1.json