Using Trading View NPM modules

I was trying to use https://www.npmjs.com/package/trading-view-recommends-parser-nodejs npm module which is needed for some of our processes but couldn't use it as I get the following error.
Error: Cannot find module 'trading-view-recommends-parser-nodejs'

:memo:Details

I am trying to use the "trading-view-recommends-parser-nodejs" package to call the trading view API endpoint and get data that will be used for deciding some of the inputs to the contract, but getting error 'Error: Cannot find module 'trading-view-recommends-parser-nodejs'' while running autotask. Can we import any third-party packages in autotask code? Or Can we pass inputs to the autotask code which can be passed to contract methods while invoking?

Hey @HarishGunjalli! You can bundle dependencies with your code using a bundler like rollup or webpack. Refer to these examples for more info!

1 Like