The auto-sync for the OKX exchange always fails due to an invalid API key

Describe the problem:

I logged into my account after a long time. I requested to sync all wallets because a new year is approaching, and I’ll need to generate a tax report. Two wallet syncs failed: OKX and MEXC. The MEXC issue was straightforward - their keys expire after some time. I recreated the key, and everything works fine now. As for OKX, I cannot figure out the problem. No matter what I do, I get:

Access denied: Invalid API key

Which exchange/wallet is this regarding?
OKX

How did you import data into this wallet?
Automatic sync.

What have you tried to fix this so far?

First, I tried to update the API key in the existing wallet according to the instructions (https://koinly.io/integrations/okex/). I created a new API key, updated the configuration, and the sync failed.

I thought that maybe there was a problem with labels in the system, so I tried swapping the passphrase in the API secret and the API secret in the passphrase field. It didn’t work.

Next, I deleted the OKX wallet and created a new one. I tried to reuse the previously created API key, but it didn’t work.

I started experimenting with the passphrase. I used a very long one (32 characters) with all allowed special characters. Then, I tried shorter ones (14 characters), each with only one special character (! and @).

No matter what I did, the sync always failed.

I think I created around 5 new API tokens, testing different passphrases. I also waited a little longer after creation to eliminate the possibility that the issue was on OKX’s side. I believe that after 30 minutes, the API key should be properly propagated on their side, but it still didn’t work.

My post was under moderation, but I couldn’t find it, so I thought it was lost. Next, I wrote another one to describe the same problem. It is here:

https://discuss.koinly.io/t/okx-wallet-auto-sync-fails-despite-multiple-troubleshooting-attempts/24007

(↑ I’m not allowed to post links)

I believe this one can be closed as a duplicate (I believe my second one is a bit better).

I found that it has been reported on another page:

https://feedback.koinly.io/apicsv-issues-public/p/okx-api-access-denied-invalid-api-key

Hi @agabrys

The issue has been reported to our devs on our feedback portal:

You can upvote the link above to keep track of the case. For now, use the CSV import method to import your data.