Merge pull request #8622 from freqtrade/frog-forceenter-price

Add check for None prices in forceenter REST API script
This commit is contained in:
Matthias 2023-05-25 19:22:03 +02:00 committed by GitHub
commit c23a045de4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -279,8 +279,9 @@ class FtRestClient():
"""
data = {"pair": pair,
"side": side,
"price": price,
}
if price:
data['price'] = price
return self._post("forceenter", data=data)
def forceexit(self, tradeid, ordertype=None, amount=None):