Files
services/examples/forex/history/node/getPreviousClose.js

13 lines
307 B
JavaScript
Executable File

const { ForexService } = require("m3o/forex");
// Returns the data for the previous close
async function getPreviousClose() {
let forexService = new ForexService(process.env.MICRO_API_TOKEN);
let rsp = await forexService.history({
symbol: "GBPUSD",
});
console.log(rsp);
}
getPreviousClose();