Skip to content

Sample implementation of TradingView Charting Library UDF-compatible data source for Binance exchange

Notifications You must be signed in to change notification settings

kingsleylow/tradingview-udf-binance-node

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TradingView Charting Library UDF Data Source

Sample implementation of server-side UDF-compatible data source for Binance exchange for TradingView Charting Library.

Run

$ npm install
$ npm start

Default port is 80.

Docker

$ docker build . -t udf
$ docker run -p 8080:80 udf

Test

In browser open:

http://localhost/symbols?symbol=ETHBTC

or

http://localhost:8080/symbols?symbol=ETHBTC

if you start from docker with port 8080.

Test with Chart Library

Take library from TradingView repo.

Open index.html and find new TradingView.widget({}) and setup config:

  • set symbol to BTCUSDT
  • set datafeed to new Datafeeds.UDFCompatibleDatafeed('http://localhost') or new Datafeeds.UDFCompatibleDatafeed('http://localhost:8080') if you use port 8080.

For example you can use http-server to serve library. In library directory write commands in terminal:

$ npm install -g http-server
$ http-server -p 3000

Check in browser:

http://localhost:3000/index.html

Links

About

Sample implementation of TradingView Charting Library UDF-compatible data source for Binance exchange

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.1%
  • Dockerfile 0.9%