sammchardy / python-kucoin

Kucoin REST and Websocket API python implementation
https://python-kucoin.readthedocs.io/en/latest/
MIT License
352 stars 148 forks source link

Cancel order stopped working: "Signature verification failed" #14

Closed Antonio-Ionaton closed 6 years ago

Antonio-Ionaton commented 6 years ago

Windows 10 Python 3.6.4 *I tried both python-kucoin v0.1.8 and v0.1.7

The API and the Client library is working for me in everything except any functions for cancelling orders which started failing last night (before that they were working fine as well). The error I keep getting is "Signature verification failed". Also today briefly, for a few hours, the cancel order functions started working again (!), without me changing anything in my code.

I tried using cancel_order or cancel_all_orders in many different ways, providing symbol or order type only, providing order_id etc. Nothing helped. Is this some issue on the Kucoin side or is there something we could do? Did Kucoin change anything?

It's strange how everything works except the cancel order calls...

Antonio-Ionaton commented 6 years ago

Update: It works off and on.

Antonio-Ionaton commented 6 years ago

Quite unusual: This error was happening yesterday 3AM-11AM New York time. Today exactly the same period, it started 3 AM and lasted until 11 AM, when it "miraculously" recovered.

Apart from this long period, there were shorter "outages" as well.

Wondering if it has something to do with their infrastructure maintenance in China/HK.

sammchardy commented 6 years ago

Hi @DerekMay it does sound like a Kucoin infrastructure issue, it wouldn't be the first time they have had issues.

Antonio-Ionaton commented 6 years ago

Thanks Sam,

Still not working for me tho and it's been three days... Can anyone give me an example of a working cancel order?

daviduartep commented 6 years ago

I didn't have this issue when this bug was opened, but I started having this issue today.

kucoin.exceptions.KucoinAPIException: KucoinAPIException UNAUTH: Signature verification failed

Apparently only cancel order is being affected, I can get balances and historical data with no issues.

Antonio-Ionaton commented 6 years ago

Hm, interesting.

On Thursday, February 15, 2018, daviduartep notifications@github.com wrote:

I didn't have this issue when this bug was opened, but I started having this issue today.

kucoin.exceptions.KucoinAPIException: KucoinAPIException UNAUTH: Signature verification failed

Apparently only cancel order is being affected, I can get balances and historical data with no issues.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sammchardy/python-kucoin/issues/14#issuecomment-366088983, or mute the thread https://github.com/notifications/unsubscribe-auth/AKFK_7hICNBACqcPfsXoR2DS_0tg_nCYks5tVLUegaJpZM4R4Bui .

shovalyechiel commented 6 years ago

when I asked the support they said you can cancel up to 1000 open trades per day Hong Kong time. maybe that's the issue. ? maybe you pass the limit ?

Antonio-Ionaton commented 6 years ago

Cool, that would explain.

On Sunday, March 4, 2018, shovalyechiel notifications@github.com wrote:

when I asked the support they said you can cancel up to 1000 open trades per day Hong Kong time. maybe that's the issue. ? maybe you pass the limit ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sammchardy/python-kucoin/issues/14#issuecomment-370241067, or mute the thread https://github.com/notifications/unsubscribe-auth/AKFK_-bHf1d1XPuhn6gm9VbSB0t0wao0ks5tbBJwgaJpZM4R4Bui .

Josi1337 commented 6 years ago

Could someone confirm that limit of 1000 cancels and did you guys get rid of it?

Antonio-Ionaton commented 6 years ago

A Kucoin support person confirmed me the 1000 cancels per day rule a few month ago, doesn’t seem the rule changed.

On Wednesday, April 11, 2018, Josi1337 notifications@github.com wrote:

Could someone confirm that limit of 1000 cancels and did you guys get rid of it?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sammchardy/python-kucoin/issues/14#issuecomment-380613051, or mute the thread https://github.com/notifications/unsubscribe-auth/AKFK_6x0DEdvZ_pZh-HrL48giznVwSd7ks5tnoB9gaJpZM4R4Bui .

Antonio-Ionaton commented 6 years ago

Sam, I was using your Big.one python package, it worked perfectly, but 10 days ago they made some changes to their API, so the package doesn’t work anymore, not even for simple tasks like querying for account coin balances.

On Wednesday, April 11, 2018, Antonio Majdandzic antem@bu.edu wrote:

A Kucoin support person confirmed me the 1000 cancels per day rule a few month ago, doesn’t seem the rule changed.

On Wednesday, April 11, 2018, Josi1337 notifications@github.com wrote:

Could someone confirm that limit of 1000 cancels and did you guys get rid of it?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sammchardy/python-kucoin/issues/14#issuecomment-380613051, or mute the thread https://github.com/notifications/unsubscribe-auth/AKFK_6x0DEdvZ_pZh-HrL48giznVwSd7ks5tnoB9gaJpZM4R4Bui .

sammchardy commented 6 years ago

@DerekMay probably best asking over on python-bigone and not a closed python-kucoin ticket :)

You're in luck though, I had updated the bigone package for the new API. You're welcome.