mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-09-20 01:21:11 +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,
|
||||
"side": side,
|
||||
"price": price,
|
||||
}
|
||||
if price:
|
||||
params['price'] = price
|
||||
return self._post("forceenter", data=data)
|
||||
|
||||
def forceexit(self, tradeid, ordertype=None, amount=None):
|
||||
|
|
Loading…
Reference in New Issue
Block a user