Hello, i am trying since few days to code a Node.js script for saveing Kline data into SQLite database, i have use the technic to read from websocket and from Kline Rest API call, always when the websocket stream say that a candel have close then i download again from Kline some data otherwise i let the script save the stream candle data to the database, but since few days i have errors in my scripts and it looks like i waist to much time till i find out how to code it best way.
And i also thing this is something which many people have already try and there could be a good solution already anywhere, if you just know where.
Have somebody here a tip for me for a good working node.js script which save Kline data into SQLite database?
I need this candelsticks datas to draw some charts.