Don't "fix" dry-run kucoin orders

closes #8229
This commit is contained in:
Matthias
2023-02-26 16:11:47 +01:00
parent 6f7ab97fc3
commit 5b0bc5bbc5
2 changed files with 9 additions and 7 deletions

View File

@@ -64,6 +64,7 @@ class Kucoin(Exchange):
# ccxt returns status = 'closed' at the moment - which is information ccxt invented.
# Since we rely on status heavily, we must set it to 'open' here.
# ref: https://github.com/ccxt/ccxt/pull/16674, (https://github.com/ccxt/ccxt/pull/16553)
res['type'] = ordertype
res['status'] = 'open'
if not self._config['dry_run']:
res['type'] = ordertype
res['status'] = 'open'
return res