rafaelklaessen / react-tradingview-widget

React component for rendering the TradingView Advanced Real-Time Chart Widget.
MIT License
270 stars 94 forks source link

Datafeed #15

Closed phucsang0spt closed 6 years ago

phucsang0spt commented 6 years ago

How I set datafeet ?

rafaelklaessen commented 6 years ago

You'll have to use the TradingView datafeed by setting the symbol. In my example I used NASDAQ:AAPL which will give you the datafeed of Apple Inc.'s stock price. If you want to use, for example, Bitcoin, use BINANCE:BTCUSD.

phucsang0spt commented 6 years ago

But i want to set datafeed like this : datafeed: new Datafeeds.UDFCompatibleDatafeed('http:mysite.com'),

On Thu, May 24, 2018 at 1:10 PM, Rafael Klaessen notifications@github.com wrote:

Closed #15 https://github.com/rafaelklaessen/react-tradingview-widget/issues/15.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rafaelklaessen/react-tradingview-widget/issues/15#event-1643410887, or mute the thread https://github.com/notifications/unsubscribe-auth/AkMUDrHLgSf3kdn_C0dsMVA8C82LQLaRks5t1k7UgaJpZM4UIj22 .

germanst commented 6 years ago

I have the same doubt, what about if I need to use my own feed?

rafaelklaessen commented 6 years ago

Can you use your own datafeed with the TradingView Advanced Real-Time Chart Widget?

poormohammadi commented 6 years ago

That means you are not supposed to support datafeed in your library , yes? So this library is not useful for this purpose.

rafaelklaessen commented 6 years ago

I suppose so yes. The thing is, if TradingView's widget supports it, this component supports it. I just can't find any docs for datafeeds with TradingView's widget, hence my question.