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

Threading Issue for Subscription Manager #6

Open
colinkimball opened this issue Jan 18, 2021 · 0 comments
Open

Threading Issue for Subscription Manager #6

colinkimball opened this issue Jan 18, 2021 · 0 comments

Comments

@colinkimball
Copy link
Member

The subscription manager polls each exchanges' REST API periodically to receive a fresh listing of supported markets as well as the best bid/ask orders for each market. When it receives this information, and markets have been added/delisted, it updates the 'TriarbMarketMapping' concurrent dictionary for its respective exchange.

For a widely referenced market such as BTC/USDT, we occasionally encounter an exception because the OrderbookListener is attempting to iterate over the Triangles mapped to the symbol while the SubscriptionManager is modifying that list at the same time.

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