ericsomdahl / python-bittrex

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

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

Open JosephMRally opened 6 years ago

JosephMRally commented 6 years ago

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}

h4ng3r commented 6 years ago

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