Mathieu2301 / TradingView-API

📈 Get real-time stocks from TradingView

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Show how to properly use login -> chart session token to get realtime (non delayed) futures data

brandonros opened this issue · comments

const remember = false
const loginResult = await TradingView.loginUser(username, password, remember)
const client = new TradingView.Client({
    token: loginResult.session // confusingly not authToken from loginResult
})