https://github.com/nersent/tradingview-downloader
https://github.com/nersent/tradingview-downloader
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nersent/tradingview-downloader
- Owner: nersent
- Created: 2023-01-06T15:38:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-06T18:34:39.000Z (over 2 years ago)
- Last Synced: 2024-11-08T03:39:22.203Z (7 months ago)
- Language: TypeScript
- Size: 55.7 KB
- Stars: 4
- Watchers: 0
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tradingview Downloader
## Prerequisites
- TradingView Premium Account
- [Node.js](https://nodejs.org/en/) min v16## How to install
### 1. Install Yarn
Open shell and type:
```bash
npm install yarn --global
```### 2. Install Node.js dependencies
Open shell at the root of this project
```bash
yarn
```### 3. Update `.env`
a) Sign in to Tradingview
b) Go to random chart page
c) Click lock icon in chrome next to address bar
d) Click cookies
e) Select tradingview.com > cookies
f) Click item with name `sessionid`
g) Copy value from `content`. **DO NOT SHARE THIS VALUE WITH ANYONE**
h) Copy `.env.example` file to `.env` and change respective values### Set what asset you want to download
Go to `src/list.ts` and edit `TRADINGVIEW_DOWNLOAD_LIST` array
- `name` is your custom name for this asset like BTC_OLCHV_4H
- `chartId` is a value for custom layout id from `https://tradingview.com/chart/{chartId}/?symbol=${symbolName}`
- `symbol` is a symbol name of given asset