Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 601 Bytes

File metadata and controls

32 lines (20 loc) · 601 Bytes

TradingView API (Python)

Python port of the TradingView API wrapper.

Quick start

Install in a local environment:

pip install -e .

Create a client and read chart data:

import tradingview_api as TradingView

client = TradingView.Client()
chart = client.Session.Chart()

chart.setMarket("BINANCE:BTCEUR", {"timeframe": "D"})

def on_loaded():
    print("Loaded", chart.infos.get("full_name"))

chart.onSymbolLoaded(on_loaded)

More details:

  • docs/ for full documentation and API reference.
  • examples/ for runnable samples (some require SESSION/SIGNATURE).