Tinkoff / invest-openapi

Документация для Тинькофф Инвестиции OpenApi
https://tinkoff.github.io/invest-openapi/
456 stars 52 forks source link

OpenApi v1 streaming protocol (via websocket) Getting error code = 403 while connection #668

Closed Sergio1C closed 2 years ago

Sergio1C commented 2 years ago

Hi there. I have already been using streaming connection a long time (a year) and all were working, but currently I can't connect for some reason (I am getting 301 error instead of 101, please see the screen I attached):

image

More context: I use .Net framewok standard webscoket. Also I refers to your API example and use the same approach (passing token in the request header & use the same Url connection). See here: https://tinkoff.github.io/invest-openapi/marketdata/

Can you explain is it a known issue? How can I overcome this issue? Is there any change from your side that I need to know to resolve my issue? Thank you in advance.

AlexanderVolkovTCS commented 2 years ago

Вероятно, за это время токен стал невалидным. Попробуйте перевыпустить токен.