Align kraken._get_params with okex
This commit is contained in:
parent
8a708a9892
commit
5791d0a394
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user