📈 Get real-time stocks from TradingView
TypeScript backtestingbacktesting-trading-strategiesbitcoinchartscryptocryptocurrencyethereumrealtime-stocksstocksstocks-apistocks-pricestradingtradingviewtradingview-apitradingview-indicatortradingview-replaytradingview-scraper
Replay mode fix + Lint
Mathieu Colmonad15df3969a4
diff --git a/README.md b/README.mdindex ac60f58..5d12c46 100644--- a/README.md+++ b/README.md@@ -10,6 +10,7 @@Get realtime market prices and indicator values from Tradingview !## Features+- [x] Premium features- [x] Automatically backtest many strategies and try many settings in a very little time- [x] Get drawings you made on your chart@@ -27,6 +28,7 @@ Get realtime market prices and indicator values from Tradingview !- IF YOU WANT A FEATURE, ASK ME !## Possibilities+- Trading bot- Discord alerts- Hard backtest@@ -34,23 +36,31 @@ Get realtime market prices and indicator values from Tradingview !- Free replay mode for all timeframes___+## InstallationStable version:+```rubynpm i @mathieuc/tradingview```+Last version:+```rubynpm i github:Mathieu2301/TradingView-API```## Examples+You can find all the examples and snippets in `./examples` folder.## Before opening an issue+Please look at examples and previously resolved issues before opening a new one. I can't help everyone (especially for questions that are not library related but JavaScript related). Thank you for your understanding.___+## Problems+If you have errors in console or unwanted behavior,please create an issue [here](https://github.com/Mathieu2301/Tradingview-API/issues).diff --git a/src/client.js b/src/client.jsindex 571577a..7a0a3e4 100644--- a/src/client.js+++ b/src/client.js@@ -207,6 +207,7 @@ module.exports = class Client {while (this.isOpen && this.#logged && this.#sendQueue.length > 0) {const packet = this.#sendQueue.shift();this.#ws.send(packet);+ if (global.TW_DEBUG) console.log('§90§30§107 > §0', packet);}}@@ -222,7 +223,7 @@ module.exports = class Client {constructor(clientOptions = {}) {if (clientOptions.DEBUG) global.TW_DEBUG = clientOptions.DEBUG;- this.#ws = new WebSocket('wss://widgetdata.tradingview.com/socket.io/websocket', {+ this.#ws = new WebSocket('wss://data.tradingview.com/socket.io/websocket', {origin: 'https://s.tradingview.com',});