KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums kdb+ How to re-subscription automatically in kdb-tick? Re: How to re-subscription automatically in kdb-tick?

  • james-massey

    Member
    February 2, 2023 at 12:00 am

    Hi, TorQ provides re-subscribe logic in subscriptions.q provided below.

    .sub.subscribe calls a function .sub.autoreconnect which tries to reconnect to any previously subscribed tables/instruments. Initially two variables are checked .sub.AUTORECONNECT which is set to 1b in the script and if .sub.reconnectinit.

    TorQ/subscriptions.q at master AquaQAnalytics/TorQ (github.com)