Coder Social home page Coder Social logo

iandecroix / tradingview-udf-binance-node Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bergusman/tradingview-udf-binance-node

0.0 1.0 0.0 30 KB

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

Home Page: https://www.tradingview.com

JavaScript 99.05% Dockerfile 0.95%

tradingview-udf-binance-node's Introduction

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

tradingview-udf-binance-node's People

Contributors

bergusman avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.