-
Notifications
You must be signed in to change notification settings - Fork 230
Open
Description
Versions
OS: linux
Python: 3.10
krakenex: 2.1.0
What are you trying to achieve?
Cancel batch of orders
# code sample
self.client.query_private('CancelOrderBatch', {'orders': orders_to_cancel})What do you expect to happen?
Cancel listed orders
What happens instead?
Error: {'error': ['EGeneral:Invalid arguments:orders']}
{'error': ['EGeneral:Invalid arguments:orders']}Support says: instead of 'application/x-www-form-urlencoded' for CancelOrderBatch method use 'application/json'
In other words: in _query method should be option to use json parameter to call a post.
self.response = self.session.post(url, data = data, headers = headers,
timeout = timeout)
And in some methods should be used this JSON option.
blastrock
Metadata
Metadata
Assignees
Labels
No labels