Files
services/examples/crypto/history/node/getPreviousClose.js
2021-09-16 12:52:36 +01:00

13 lines
317 B
JavaScript
Executable File

import * as crypto from "m3o/crypto";
// Returns the history for the previous close
async function GetPreviousClose() {
let cryptoService = new crypto.CryptoService(process.env.MICRO_API_TOKEN);
let rsp = await cryptoService.history({
symbol: "BTCUSD",
});
console.log(rsp);
}
await GetPreviousClose();