makerdao / market-maker-keeper

Maker Keeper Framework: Market maker keepers for OasisDEX, EtherDelta, 0x (RadarRelay, ERCdEX), Paradex, DDEX, IDEX, Bibox, Ethfinex, GoPax, HitBTC, TheOcean, OKEX and Gate.io.
GNU Affero General Public License v3.0
478 stars 182 forks source link

Add lock to ErisX get_orders #226

Closed MikeHathaway closed 3 years ago

MikeHathaway commented 3 years ago

I've verified that the sync orders process properly removes orders from the returned orderbook, however, the keeper is still attempting to cancel orders which sync_orders didn't return. This change should block the synchonrize_orders method, until the order book has finished processing. This seems to be a cleaner approach than adding a counter to exit out of wait_for_order_processing_response if no queue is found after some time period.