Im trying to integrate trading view charting library by using my own data. But the documentation is not easy to find. Here:
https://github.com/tradingview/charting_library/wiki/Widget-Constructor#datafeed
it says you can use your own data by overriding:
datafeed: new Datafeeds.UDFCompatibleDatafeed("https://demo_feed.tradingview.com")
So instead of "https://demo_feed.tradingview.com" I should use my own endpoint. But how should it look like? How would the data I return look like? I guess it is json? And what structure should it have? I am really not able to find info about this topic.