-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stream by figi and auto-reconnect #7
Conversation
const handler = () => {}; // eslint-disable-line @typescript-eslint/no-empty-function | ||
const candlesStatus: MarketDataResponse = { | ||
subscribeCandlesResponse: { | ||
trackingId: 'xxx', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А точно не id приложения тут?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
По докам trackingId: https://tinkoff.github.io/investAPI/marketdata/#subscribecandlesresponse
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
так это и есть уникальный идентификатор запроса, не тот ли это что нам нужен?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
так это и есть уникальный идентификатор запроса, не тот ли это что нам нужен?
Это немного не то - он только в ответе приходит, а в самом запросе его не указываем (поэтому сопоставить с запросом все-равно нельзя). Это для службы поддержки, в случае ошибки можно приложить.
давай делать бету и смотреть, я обвешаюсь логами и посмотрю как оно будет завтра на открытии) |
С учетом обсуждений в #4 и #6, а также на базе #5 добавил следующие фичи:
@BusinessDuck посмотри плз.
можем потом опубликовать в бету и проверить в бою!