Skip to content

Threading Issue for Subscription Manager #6

@colinkimball

Description

@colinkimball

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions