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

Do not allow too often orders checking in staggered orders #177

Merged
merged 1 commit into from
Jun 4, 2018

Commits on Jun 3, 2018

  1. Do not allow too often orders checking in staggered orders

    On every market update we're getting an event in on_market() callback
    inside worker.py which leads to calling
    self.workers[worker_name].onMarketUpdate(data) which then calls
    Strategy.check_orders() while using staggered oders. This leads to
    querying bitshares for each placed order every time market update comes
    which may take 3-4 seconds!!!
    
    On active market there are lots of market changes constantly, so the bot
    parses new notifications too slow! He just always stays beyond the
    actual market. In the active markets like BTS/USD there are lots of
    orders happening, but the bot is able to parse only one in 3-4 seconds
    (depending on number of orders and lag to the node).
    
    As a quick solution, just limit orders checking rate to once per 5
    seconds.
    
    Closes: Codaone#169
    bitphage committed Jun 3, 2018
    Configuration menu
    Copy the full SHA
    837c477 View commit details
    Browse the repository at this point in the history