mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Update rest_client.py
Add fix for forceenter to avoid passing None prices back to the API
This commit is contained in:
parent
deeca484d8
commit
3a7e41e177
|
@ -279,8 +279,9 @@ class FtRestClient():
|
||||||
"""
|
"""
|
||||||
data = {"pair": pair,
|
data = {"pair": pair,
|
||||||
"side": side,
|
"side": side,
|
||||||
"price": price,
|
|
||||||
}
|
}
|
||||||
|
if price:
|
||||||
|
params['price'] = price
|
||||||
return self._post("forceenter", data=data)
|
return self._post("forceenter", data=data)
|
||||||
|
|
||||||
def forceexit(self, tradeid, ordertype=None, amount=None):
|
def forceexit(self, tradeid, ordertype=None, amount=None):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user