Skip to content
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

Merged
merged 6 commits into from
Aug 10, 2022
Merged

Stream by figi and auto-reconnect #7

merged 6 commits into from
Aug 10, 2022

Conversation

vitalets
Copy link
Owner

С учетом обсуждений в #4 и #6, а также на базе #5 добавил следующие фичи:

  • отдельные методы для подписка на свечи, сделки итд, где обработчик привязывается к figi, указанным в подписке
  • autoReconnect при обрыве соединения
  • проверка результата при запросе подписки и выбрасывание ошибки если !== success

@BusinessDuck посмотри плз.
можем потом опубликовать в бету и проверить в бою!

const handler = () => {}; // eslint-disable-line @typescript-eslint/no-empty-function
const candlesStatus: MarketDataResponse = {
subscribeCandlesResponse: {
trackingId: 'xxx',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А точно не id приложения тут?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

@BusinessDuck BusinessDuck Aug 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

так это и есть уникальный идентификатор запроса, не тот ли это что нам нужен?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

так это и есть уникальный идентификатор запроса, не тот ли это что нам нужен?

Это немного не то - он только в ответе приходит, а в самом запросе его не указываем (поэтому сопоставить с запросом все-равно нельзя). Это для службы поддержки, в случае ошибки можно приложить.

@BusinessDuck
Copy link

давай делать бету и смотреть, я обвешаюсь логами и посмотрю как оно будет завтра на открытии)

@vitalets vitalets merged commit 2f57505 into main Aug 10, 2022
This was referenced Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants