Align kraken._get_params with okex

This commit is contained in:
Matthias 2022-03-23 06:49:07 +01:00
parent 8a708a9892
commit 5791d0a394

View File

@ -170,7 +170,12 @@ class Kraken(Exchange):
reduceOnly: bool, reduceOnly: bool,
time_in_force: str = 'gtc' time_in_force: str = 'gtc'
) -> Dict: ) -> Dict:
params = super()._get_params(ordertype, leverage, reduceOnly, time_in_force) params = super()._get_params(
ordertype=ordertype,
leverage=leverage,
reduceOnly=reduceOnly,
time_in_force=time_in_force,
)
if leverage > 1.0: if leverage > 1.0:
params['leverage'] = round(leverage) params['leverage'] = round(leverage)
return params return params