python3-krakenex icon indicating copy to clipboard operation
python3-krakenex copied to clipboard

Can't cancel order

Open TOTANICS opened this issue 7 years ago • 3 comments

Versions

OS:      Linux
Python:   3.6.7
krakenex: latest

What are you trying to achieve?

Having placed an order "AddOrder", I attempt to cancel it, but this fails and returns an error.

adding the order...
`def add_sell_order()
		res = api.query_private('AddOrder',{
			'pair': 'BCHEUR',
			'type': 'sell',
			'ordertype': 'limit',
			'price': myprice,
			'volume': myvolume})
		print(res)
`
This gets me among other things the 'txid' which we'll call 'mytxid'

If I then pass this to my cancel order function...

`def cancel_sell_order()
		res = api.query_private('CancelOrder',{
			'txid': mytxid})
		print(res)
`
I get the following output:

{'error': ['EOrder:Invalid order']}



What do you expect to happen?

As above I expect the order to cancel

What happens instead?

As above described

# error message
see above

If I search for open orders that order is still there waiting to fill or be canceled but I can't cancel it through the API. Any ideas? Thanks!

TOTANICS avatar Dec 21 '18 19:12 TOTANICS

What happened? Did you close by accident, or figure it out?

If the latter, please do give a brief description, in case someone stumbles on the same issue.

veox avatar Dec 24 '18 15:12 veox

Issue is still unsolved

adm-github avatar May 29 '21 13:05 adm-github

@adm-github Then open a new issue with something more reproducible than this.

veox avatar May 30 '21 11:05 veox