My bad if this is a noobie question since I am rather new to JS. I am wondering what is the proper way to setup extremely basic driver code in order to call the indicators and run the project.
I have simply created an app.js in the root directory and tried to run the RSI indicator snippet, as an example:
However, I get this issue / error:
SyntaxError: await is only valid in async functions and the top level bodies of modules
Something that may be a contributing issue to the above one, I tried to npm start this project and the run stops at:
"example to fetch data from binance"
Which is line 7 on package.json.
Thanks for any insight, thanks for this contribution, and best regards.
First you need to have both input and your console.log inside an async function, then you'll migrate to the next issue of "Ticker is not supported"
Would be back when I am able to resolve it
Hello and thanks for your contribution,
My bad if this is a noobie question since I am rather new to JS. I am wondering what is the proper way to setup extremely basic driver code in order to call the indicators and run the project.
I have simply created an app.js in the root directory and tried to run the RSI indicator snippet, as an example:
However, I get this issue / error:
SyntaxError: await is only valid in async functions and the top level bodies of modules
Something that may be a contributing issue to the above one, I tried to npm start this project and the run stops at:
"example to fetch data from binance"
Which is line 7 on package.json.
Thanks for any insight, thanks for this contribution, and best regards.