Broker API HubMenu

tradingview/lightweight-charts

In its own words: Performant financial charts built with HTML5 canvas

Independent and unofficialRead from GitHub

Open tradingview/lightweight-charts on GitHub

Risk warning: CFDs and spread bets are complex instruments and come with a high risk of losing money rapidly due to leverage. You can lose money on these products, and each provider publishes its own loss figure under FCA rules. You should consider whether you understand how they work and whether you can afford to take the high risk of losing your money. Automated and API trading can amplify losses through bugs, connectivity failures and runaway orders.

The facts

Stars
17,477
Forks
2,632
Language
TypeScript
Licence
Apache-2.0
Created
Last push
Kind
Data, indicators and charts
Read from GitHub
github.com/tradingview/lightweight-chartschecked

Stars measure attention, not quality or safety. Nothing here reviews the code or its author. Read the licence, the open issues and the code itself before you run anything against an account. Star velocity: unmeasurable, because this site holds one reading for this repository.

Get started in a couple of minutes

You need Node.js and Git installed. Then, in a terminal:

git clone https://github.com/tradingview/lightweight-charts.git
cd lightweight-charts
  1. npm install
  2. Look in package.json for the scripts it offers, then run one with: npm run <name>

These are the usual steps for a project in this language, not instructions taken from this repository. Its README has the exact commands, and it wins wherever the two differ.

Before you connect anything to a broker: read what the code does, use a demo account, and keep keys in environment variables, never in the code. New to GitHub? Start with the basics.

Use it with

Others of the same kind