Added simple flag for marketmaker to prevent quoting.

This commit is contained in:
Geoff Taylor 2021-08-25 20:57:57 +01:00
parent 6baa336c34
commit 8debc3238a
1 changed files with 5 additions and 0 deletions

View File

@ -50,7 +50,12 @@ class MarketMaker:
self.buy_client_ids: typing.List[int] = []
self.sell_client_ids: typing.List[int] = []
self.not_quoting: bool = False
def pulse(self, context: mango.Context, model_state: ModelState):
if self.not_quoting:
return True
try:
payer = mango.CombinableInstructions.from_wallet(self.wallet)