ericsomdahl / python-bittrex

Python bindings for bittrex
MIT License
585 stars 283 forks source link

Trade Sell is not setting IsConditional flag to True! #121

Open Sravan2j opened 6 years ago

Sravan2j commented 6 years ago

I am trying to create trade sell order with "less than" condition.

I used the below request. I got success response, but in the response 'IsConditional' is set as False, instead of True.

Request: self.bittrex.trade_sell(market="BTC-LTC", order_type="LIMIT", quantity=10, rate=0.01450, time_in_effect='GOOD_TIL_CANCELLED', condition_type='LESS_THAN', target=0.01450)

Response: {'success': True, 'message': '', 'result': [{'QuantityRemaining': 10.0, 'ImmediateOrCancel': False, 'Uuid': None, 'OrderUuid': 'XXXX-XXXX-XXXX-XXXX-XXXXXXXXX', 'Price': 0.0, 'PricePerUnit': None, 'CommissionPaid': 0.0, 'Closed': None, 'Exchange': 'BTC-LTC', 'Condition': 'LESS_THAN', 'Limit': 1.45e-02, 'ConditionTarget': 1.45e-02 'OrderType': 'LIMIT_SELL', 'Quantity': 10.0, 'IsConditional': False, 'CancelInitiated': False, 'Opened': '2018-01-03T07:01:07.91'}]}

Could someone please let me know how to fix this?