简体   繁体   中英

Getting chart pictures from tradingview

Is there any way to use node.js or a backend service to get a picture of a chart from tradingview ? The tradingview API that is provided does not provide any options for this.

  1. You need to create backend services to serve serval endpoints.

  2. Use UDF - It's an HTTP-based protocol that is designed to deliver data to the Charting Library in a simple and efficient way.

Services(APIs) endpoints which you need to create some of them are:

  1. Data feed configuration data URL - /config
  2. Symbol group request URL - GET /symbol_info?group=<group_name>
  3. Symbol resolve URL - GET /symbols?symbol=<symbol>

For candle/bar data you have to create: URL - GET /history?symbol=<ticker_name>&from=<unix_timestamp>&to=<unix_timestamp>&resolution=<resolution>

Refer: https://github.com/tradingview/charting_library/wiki/UDF

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM