Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proper Example of Driver Code to Run the trading-indicator Project #58

Open
JayCax opened this issue Nov 7, 2023 · 1 comment
Open

Comments

@JayCax
Copy link

JayCax commented Nov 7, 2023

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:

Screen Shot 2023-11-06 at 16 26 48

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.

@sidewapboss
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants