Skip to content

Can't init client with session and signature #294

@omertheroot

Description

@omertheroot

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions