TradingView-API icon indicating copy to clipboard operation
TradingView-API copied to clipboard

Can't init client with session and signature

Open omertheroot opened this issue 9 months ago • 2 comments

Describe the bug Since reading pine indicators without auth is not possible anymore, I need to init my client with session and signature cookies. (loginUser frequently asks for captcha so i retrived cookies from my browser). However, even if my account has essential plan, I can not fetch any indicators.

The maximum number of studies per chart has been reached for current subscription tyo1-charts-free-3-tvbs-gq18b-3@tyo1-charts-free-3-tvbs-gq18b-3

Is it something about the signature cookie starting with "v3" instead of "v2" or "v1"?

The way i init my client:

const client = new TradingView.Client({
    session: "<session>",
    signature: "<signature that starts with 'v3:' >",
    location: "https://tr.tradingview.com",
});

To Reproduce Initalize your client with the cookie method. Try to fetch some indicators.

omertheroot avatar May 01 '25 16:05 omertheroot

hello, I have the same problem. the solution:

const client = new TradingView.Client({ token: "your_sessionid", signature: "your_sessionid_sgn (starts with v3: )" });

and it works !

Mitty224 avatar Jun 04 '25 07:06 Mitty224

@Mitty224 This is an issue regardless

I've hardcoded the keys and it's still giving error

@omertheroot did you get it working?

tm-const avatar Aug 24 '25 23:08 tm-const