Skip to main content
API · 5-10 min · Spot · Deposits · Withdrawals · 100+ countries

What’s covered

Spot trades

Buy, sell, and conversions.

Staking and Rewards

Staking income and reward distributions.

Deposits and Withdrawals

On-chain deposits and withdrawals.

Trading Fees and Rebates

Fee records and trading rebates.

Before you start

Okcoin account

Active account with transaction history.

KoinX account

Free account - no credit card needed.

Connect Okcoin to KoinX

API Key syncs your full Okcoin transaction history automatically - no file exports needed.

Generate your Okcoin API key

1

Log in to Okcoin

Go to okcoin.com and sign in to your account.
2

Open API settings

Click the Profile icon in the top right corner and select API.
3

Create a new API key

Click Create API Key.
4

Set permissions to Read Only

Set permissions to Read Only and click Generate Key.
Select Read Only permissions only. Never enable trading or withdrawal permissions on an API key connected to a third-party service.
5

Copy your API key and Secret Key

Copy both your API Key and Secret Key and store them securely. The Secret Key is shown only once.

Connect Okcoin to KoinX

1

Open KoinX Integrations

Log in to app.koinx.com -> Integrations -> Add Integration.
2

Select Okcoin

Search for Okcoin and select it.
3

Paste your keys and import

Paste your API Key and Secret Key into the respective fields and click Import Now.
Done. KoinX begins syncing your Okcoin history. Large accounts may take a few minutes.
Once your Okcoin data is in, head over to Tax Reports on KoinX - your capital gains, income breakdown, and country-specific crypto tax report are ready for you there.

API key notes

  • Read Only is required - keys with broader permissions may be rejected by KoinX as a security measure.
  • Secret Key is shown once only - copy it immediately at the time of creation and store it securely.
  • Use Sync Now to pull the latest Okcoin transactions into KoinX at any time from the Integrations panel.

Frequently asked questions

Read Only permissions only. This gives KoinX access to your full transaction history without the ability to place trades or move funds. Never generate an API key with broader permissions for a third-party service.
No. Okcoin displays the Secret Key only once at the time of creation. Copy it immediately and store it securely. If lost, delete the key from API settings and generate a new one.
Yes. Many countries have tax laws and regulations placed on crypto transactions. You must follow the rules set by the concerned authority in your region to avoid legal penalties.
No. Okcoin does not provide tax-ready reports. By connecting your Okcoin account to KoinX via API key, your full transaction history is imported automatically and a compliant, country-specific tax report is generated within minutes.
Yes. KoinX supports 100+ countries with dedicated report formats for India, the US, UK, Australia, Canada, Germany, and more. After importing your Okcoin data, select your country to generate the correct report.

Troubleshooting

Confirm the key was generated with Read Only permissions in Okcoin -> Profile -> API. Delete the credentials in KoinX and re-enter both values carefully - copy directly from Okcoin to avoid invisible characters.
Ensure the transaction history covers the full period from your Okcoin account creation date with no gaps. Trigger a manual re-sync from KoinX -> Integrations -> Okcoin. If records are still missing, disconnect and reconnect with a fresh API key.
Check the Okcoin platform for ongoing maintenance. If the platform is operational, verify the key is still active under Profile -> API. Regenerate if expired, re-enter credentials in KoinX, and trigger a fresh sync.
Okcoin API keys can become inactive following account security changes. Log in to Okcoin, check the key status under Profile -> API, and regenerate if inactive. Update the new credentials in KoinX under Integrations -> Okcoin -> Edit.
Confirm Read Only permissions on the key include access to all account types. If rewards are still missing after re-syncing, generate a new API key and reconnect in KoinX.
Check KoinX -> Integrations for duplicate Okcoin connections and remove any extras. If a file was previously uploaded for the same period, delete those transactions before re-syncing via API.

OKX Integration

Sync OKX trades and earn history via API or CSV.

Bybit Integration

Connect Bybit via API key or file upload.

Binance - File Upload

Export Binance CSVs for Spot, P2P, Earn, and Options.

Bitget - API Upload

Connect Bitget via Tax API Key or Normal API Key.

Ready to generate your Okcoin crypto tax report?

Create a free KoinX account - no credit card required. Import your Okcoin transactions and generate a country-specific tax report in minutes.
Last modified on June 18, 2026