mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Merge pull request #8622 from freqtrade/frog-forceenter-price
Add check for None prices in forceenter REST API script
This commit is contained in:
commit
c23a045de4
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user