Update rest_client.py

Add fix for forceenter to avoid passing None prices back to the API
pull/8622/head
Robert Davey 3 years ago committed by GitHub
parent deeca484d8
commit 3a7e41e177
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save