correct time_in_force param
This commit is contained in:
parent
dd2522d8d0
commit
5e8a7a03c3
@ -304,7 +304,7 @@ class Exchange(object):
|
|||||||
amount = self.symbol_amount_prec(pair, amount)
|
amount = self.symbol_amount_prec(pair, amount)
|
||||||
rate = self.symbol_price_prec(pair, rate) if ordertype != 'market' else None
|
rate = self.symbol_price_prec(pair, rate) if ordertype != 'market' else None
|
||||||
|
|
||||||
if time_in_force != 'gtc':
|
if time_in_force == 'gtc':
|
||||||
return self._api.create_order(pair, ordertype, 'buy', amount, rate)
|
return self._api.create_order(pair, ordertype, 'buy', amount, rate)
|
||||||
else:
|
else:
|
||||||
return self._api.create_order(pair, ordertype, 'buy',
|
return self._api.create_order(pair, ordertype, 'buy',
|
||||||
@ -347,7 +347,7 @@ class Exchange(object):
|
|||||||
amount = self.symbol_amount_prec(pair, amount)
|
amount = self.symbol_amount_prec(pair, amount)
|
||||||
rate = self.symbol_price_prec(pair, rate) if ordertype != 'market' else None
|
rate = self.symbol_price_prec(pair, rate) if ordertype != 'market' else None
|
||||||
|
|
||||||
if time_in_force != 'gtc':
|
if time_in_force == 'gtc':
|
||||||
return self._api.create_order(pair, ordertype, 'sell', amount, rate)
|
return self._api.create_order(pair, ordertype, 'sell', amount, rate)
|
||||||
else:
|
else:
|
||||||
return self._api.create_order(pair, ordertype, 'sell',
|
return self._api.create_order(pair, ordertype, 'sell',
|
||||||
|
Loading…
Reference in New Issue
Block a user