tradingview / charting-library-tutorial

This tutorial explains step by step how to connect your data to the Charting Library
MIT License
405 stars 310 forks source link

Failed to load resource: the server responded with a status of 404 () #58

Closed epezon closed 2 years ago

epezon commented 2 years ago

Hi there, I am trying to implement streaming with polygon.io websocket. I have configured the websocket in the streaming.js file but the chart seems to try to connect to wrong address: image

This is my configuration from the streaming.js file: const socket = io('wss://delayed.polygon.io/stocks');

The index.html contains the socket.io script :

Any idea how to fix this? The chart works fine otherwise.

timocov commented 2 years ago

How this query is related to the tutorial?

epezon commented 2 years ago

I am using the tutorial files as a base. Since I don´t want to use it for cryptos but stocks, I was wondering if you could help me with how to change the websocket address.

timocov commented 2 years ago

Well, in this case I think you need to contact the API provider or ask the question on stackoverflow.

epezon commented 2 years ago

Ok, will do that.