Add typing information to retrier decorator

This commit is contained in:
Matthias
2022-04-15 15:48:37 +02:00
parent 42ae8ba6fb
commit 07ec3b27fe
4 changed files with 24 additions and 9 deletions

View File

@@ -71,14 +71,14 @@ class Gateio(Exchange):
}
return trades
def fetch_stoploss_order(self, order_id: str, pair: str, params={}) -> Dict:
def fetch_stoploss_order(self, order_id: str, pair: str, params: Dict = {}) -> Dict:
return self.fetch_order(
order_id=order_id,
pair=pair,
params={'stop': True}
)
def cancel_stoploss_order(self, order_id: str, pair: str, params={}) -> Dict:
def cancel_stoploss_order(self, order_id: str, pair: str, params: Dict = {}) -> Dict:
return self.cancel_order(
order_id=order_id,
pair=pair,