python-bittrex icon indicating copy to clipboard operation
python-bittrex copied to clipboard

get_open_orders does not provide all open orders when parameter market = None

Open JosephMRally opened this issue 7 years ago • 1 comments

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}

JosephMRally avatar Jan 10 '18 01:01 JosephMRally

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

h4ng3r avatar Jan 18 '18 21:01 h4ng3r