Skip to content

getIndicator no longer works for Indicators with Id's starting with 'USER;' and only works for Indicators with Id's starting with 'PUB;' #249

@TaylorArmstrong

Description

@TaylorArmstrong

Describe the bug
A clear and concise description of what the bug is.
getIndicator fails with the following error thrown from misRequests.js line 257 : 'The user requesting information on the script is not allowed to do so'
getIndicator succeeds with ID starting with 'PUB;' , but not 'USER;'

To Reproduce
Code to reproduce the behavior.

    const client = new TradingView.Client({token: process.env.TRADINGVIEW_SESSION_ID, signature: process.env.TRADINGVIEW_SESSION_ID_SIGN});
    const chart = new client.Session.Chart();

    chart.setMarket(symbol, {
        timeframe: timeframe.toString(),
        type: 'HeikinAshi',
        to: _to,
        range: number_of_candles,
        session: 'extended'
    });
    
    TradingView.getIndicator(indicator).then(indic => {

        const study = new chart.Study(indic);

    })

Expected behavior
A clear and concise description of what you expected to happen.

08/05 - This same code was working and returning data for all indicators. Could this be an issue with the account or a permissions issue? Nothing has changed that we are aware of.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment:

  • OS: mac Sonoma 14.5
  • Node version: v20.15.0

Additional context
Add any other context about the problem here.

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