python-bittrex
python-bittrex copied to clipboard
get_open_orders does not provide all open orders when parameter market = None
Per bittrex horribly written API documents: "market | optional | a string literal for the market (ie. BTC-LTC)".
Yet calling the API with None gives...
bittrex.get_open_orders(None) Out[16]: {'message': 'MARKET_NOT_PROVIDED', 'result': None, 'success': False}
Dear @ultrarelativistic Seems that it's a bug in the Bittrex API. You can workaround it switching to V1.1 API only for this call:
my_bittrex.api_version=API_V1_1
open_orders = my_bittrex.get_open_orders()
my_bittrex.api_version=API_V2_0
Remember that API V2.0 is in BETA, so you may want to fully switch to V1.1 which is the stable version.
Best regards