Open ocmich74 opened 4 years ago
to format javascript code you use 3 backticks like this: ```js some code here .. then 3 more backticks ```
await binance.usedWeight()
to tell you how much of that you've used up
const sleep = ms => new Promise( res => setTimeout( res, ms ) );
await sleep(500); // half second delay
Thank you for responding back so quickly. I fixed my code so its formatted correctly. The await sleep didn't work because it doesn't look like my code is async. When i remove the wait code, i still got the candlestick error. Any other suggestions?
I am getting this error down in the getCandles part of the code and have not been able to resolve it. This is first time posting on github so I apologize if my post isn't correct. I tried to format the code like it looks like in my code editor but when I hit post, it came out like this....