Open sky00781 opened 10 months ago
hello,i just use the bellow code,the the error
anything i missed? how can i fixed it.
my code is :
async function test(){ const { atr, getDetachSourceFromOHLCV } = require('trading-indicator') const { input } = await getDetachSourceFromOHLCV('binance', 'BTC/USDT', '1h', false) // true if you want to get future market console.log(input); let atrData = await atr(14, "close", input) console.log(atrData[atrData.length - 1]) }
(async function(){ // await ready() await test() })();
hello,i just use the bellow code,the the error
anything i missed? how can i fixed it.
my code is :
async function test(){ const { atr, getDetachSourceFromOHLCV } = require('trading-indicator') const { input } = await getDetachSourceFromOHLCV('binance', 'BTC/USDT', '1h', false) // true if you want to get future market console.log(input); let atrData = await atr(14, "close", input) console.log(atrData[atrData.length - 1]) }
(async function(){
// await ready() await test() })();