Skip to content

Commit e19e785

Browse files
authored
update tradingview docs (#46)
1 parent f66ef7b commit e19e785

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pages/guides/how-to-create-tradingview-charts.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,15 @@ The TradingView integration is a web-based widget that allows users to view Pyth
110110
5. Replace the `theme` parameter with the theme you want to display. For example, to display the price of Ethereum in dark mode, use `theme: "dark"`.
111111

112112
6. There is a fully working open-source example of the TradingView integration by one of Pyth's contributors [here](https://github.com/cctdaniel/pyth-tv-example). The example application is deployed [here](https://pyth-tv-example.vercel.app/).
113+
114+
## Using Datafeed URL with Charting Library
115+
116+
We also provide a datafeed URL that follows the [TradingView Data Integration spec](https://www.tradingview.com/rest-api-spec/#tag/Data-Integration). You can implement your own datafeed utilizing the API or use the built-in [UDF](https://www.tradingview.com/charting-library-docs/latest/connecting_data/UDF) adapter. If you need a step-by-step guide, refer to the [How to connect data via Datafeed API](https://www.tradingview.com/charting-library-docs/latest/tutorials/implement_datafeed_tutorial/) tutorial.
117+
118+
The datafeed URL is [here](https://benchmarks.pyth.network/v1/shims/tradingview) and documentation can be found [here](https://benchmarks.pyth.network/redoc)
119+
120+
### Example
121+
122+
- Symbol Info: https://benchmarks.pyth.network/v1/shims/tradingview/symbol_info
123+
- History: https://benchmarks.pyth.network/v1/shims/tradingview/history?symbol=Crypto.ETH/USD&resolution=1&from=1690338541&to=1690338741
124+
- Stream of prices: https://benchmarks.pyth.network/v1/shims/tradingview/streaming

0 commit comments

Comments
 (0)