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

Wrong or expired sessionid/signature - all time

Open cropii opened this issue 2 years ago • 7 comments

Hello,

i add sessionid+ signature - i try cople ways:

  1. log in via your script;
  2. log in via cookies from browser;

result same: Credentials error: Wrong or expired sessionid/signature

pics in attachment. az1

az2

cropii avatar Nov 19 '23 15:11 cropii

the same problem

lzhqlj2023 avatar Nov 27 '23 15:11 lzhqlj2023

help

lzhqlj2023 avatar Nov 30 '23 12:11 lzhqlj2023

You can use TradingView-API-3.4.1 - comment out lines 429 and 430 in the miscRequests file.

lzhqlj2023 avatar Nov 30 '23 14:11 lzhqlj2023

Got the same error here

schnouz avatar Nov 30 '23 21:11 schnouz

Ok in fact you need to change the URL in miscRequests.js. my account is based in France and the default url of https://tradingview.com wasn't working. Changing the URL to https://fr.tradingview.com/ solve the issue

schnouz avatar Dec 01 '23 11:12 schnouz

i found this kinda hack, For me this is necessary because i have 2fa enabled because i need to create webhooks.

Unfortunately there is no other solution than the steps below:

  1. go to your browser
  2. go to tradingview and make sure you're logged in
  3. open your inspector mode and go to the "storage tab"
  4. click on "cookies" -> "https://www.tradingview.com"
  5. copy the values from the screenshot, and paste them in the token and signature fields in your code: afbeelding

danielgroen avatar Dec 29 '23 11:12 danielgroen

same issue

chingfeng2021 avatar Jun 12 '24 16:06 chingfeng2021