rafaelklaessen / react-tradingview-widget

React component for rendering the TradingView Advanced Real-Time Chart Widget.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

datafeed

poormohammadi opened this issue · comments

how to change datafeed in this library?
connecting to a custom server required.
now ,

<TradingViewWidget
          locale="fa_IR"
          symbol="BTCUSD"
          theme={Themes.DARK}
          datafeed={new Datafeeds.UDFCompatibleDatafeed("https://demo_feed.tradingview.com")}

        />

does not work. how to import Datafeeds or any solution to run trading view chart library with custom data fetching from ws protocol.

This issue was already created and therefore I'm marking this one as a duplicate.

Please answer my question in #15