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

How to deal with growing execution stream data? Is there a reset function? #475

Open
flolege opened this issue Feb 9, 2021 · 0 comments

Comments

@flolege
Copy link

flolege commented Feb 9, 2021

I am getting my execution data by subscribing to the execution table:

    bitmexWebsocket.addStream('XBTUSD', 'execution', async function (data, symbol, tableName) {
        if (!data.length) {return}      
        ...
   
    })

For me it seems the data object is an accumulation of all execution events which happened since subscription.

If one gets frequent executions, the data object can get huge, right?

So is there a kind of reset functionality or what are the best practices to deal with this issue? Un- and resubscribe? How?

@flolege flolege changed the title Hot to deal with growing execution stream data? Is there a reset function? How to deal with growing execution stream data? Is there a reset function? Feb 9, 2021
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

No branches or pull requests

1 participant