Mathieu2301 / TradingView-API

📈 Get real-time stocks from TradingView
1.31k stars 307 forks source link

Wrong or expired sessionid/signature - all time #222

Open cropii opened 7 months ago

cropii commented 7 months ago

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

lzhqlj2023 commented 7 months ago

the same problem

lzhqlj2023 commented 7 months ago

help

lzhqlj2023 commented 7 months ago

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

schnouz commented 7 months ago

Got the same error here

schnouz commented 7 months ago

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

danielgroen commented 6 months ago

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
chingfeng2021 commented 3 weeks ago

same issue