Exchange API Keys
dTax connects to your exchange via a read-only API key. This lets dTax fetch your trade history without being able to move funds. You should never grant withdrawal or trading permissions.
Where to enter your key in dTax
- Go to Transactions → Connect Exchange
- Select your exchange from the dropdown
- Paste your API Key and Secret Key into the corresponding fields
- Click Connect
Binance
-
Open API Management
Log in to Binance → click your profile icon (top right) → select API Management.
-
Create a new API key
Click Create API → choose System generated → enter a label (e.g.
dTax) → click Next. -
Complete security verification
Complete the email / authenticator verification prompt.
-
Set permissions — Read only
Under API restrictions, make sure only Enable Reading is checked. Uncheck Enable Spot & Margin Trading, Enable Withdrawals, and all other options.
Leave Restrict access to trusted IPs only unchecked (or add your IP if you prefer extra security).
-
Save your keys
Copy and store your API Key and Secret Key immediately — the Secret Key is only shown once.
OKX
-
Open API settings
Log in to OKX → click your profile icon → select API.
-
Create a new API key
Click Create API key → choose purpose Link third-party platform (recommended) or Custom.
-
Fill in the details
Enter a name (e.g.
dTax) and a Passphrase of your choice. Store the passphrase — you will need it in dTax. -
Set permissions
Under Permissions, enable only Read. Do not enable Trade or Withdraw.
-
Save
Complete 2FA verification and save. Copy your API Key, Secret Key, and Passphrase — enter all three in dTax.
Bybit
-
Open API management
Log in to Bybit → click your profile icon (top right) → select API.
-
Create a new key
Click Create New Key → choose System-generated API Keys.
-
Fill in the details
Enter a key name (e.g.
dTax). Under Key Permissions, select Read-Only. -
Bind IP (optional)
Leave IP binding empty unless you want additional security.
-
Confirm and save
Complete 2FA. Copy your API Key and Secret Key.
KuCoin
-
Open API Management
Log in to KuCoin → click your profile icon → select API Management.
-
Create a new API key
Click Create API.
-
Fill in the details
Enter a name (e.g.
dTax) and a Passphrase of your choice. -
Set permissions
Under Permissions, check only General (read access). Leave Trade and Transfer unchecked.
-
Complete verification
Enter your trading password and 2FA code. Save your API Key, Secret, and Passphrase — enter all three in dTax.
Kraken
-
Open the API settings
Log in to Kraken → click your profile icon (top right) → go to Security → API.
-
Generate a new key
Click Generate new key.
-
Set the key permissions
Enable the following and nothing else:
- ✅ Query funds
- ✅ Query open orders & trades
- ✅ Query closed orders & trades
- ✅ Query ledger entries
- ✅ Export data (optional, for CSV export support)
Leave all others unchecked, especially Create & modify orders and Withdraw funds.
-
Save
Click Generate key. Copy your API Key and Private Key (Kraken calls it “Private Key” instead of “Secret”).
Coinbase
-
Open API settings
Log in to Coinbase → click your profile icon → Settings → API tab.
Alternatively, go directly to coinbase.com/settings/api.
-
Create a new API key
Click + New API Key.
-
Select accounts and permissions
Choose the accounts to connect. Under Permissions, select only View (read-only). Do not enable Trade or Transfer.
-
Save
Complete 2FA. Download or copy your API Key and API Secret.
Gate.io
-
Open API Management
Log in to Gate.io → click your profile icon (top right) → select API Keys (under My Profile).
-
Create a new API key
Click Create API Key.
-
Fill in the details
Enter a name (e.g.
dTax). Enter your fund password. -
Set permissions
Under Permissions, enable only Read (wallet read and trade history read). Do not enable Withdraw, Trade, or any write permission.
-
Complete verification
Complete 2FA. Copy and save your API Key and Secret Key.
Troubleshooting
“Invalid API key” error
- Double-check you copied the full key without extra spaces.
- Make sure you’re using the correct field: API Key goes in “API Key”, Secret goes in “Secret Key”.
- For KuCoin/OKX, also verify the Passphrase is correct.
“Insufficient permissions” error
- Your key may have been created without Read permissions. Delete the key and create a new one following the steps above.
“IP not whitelisted” error
- You enabled IP restriction when creating the key. Either remove the IP restriction or add your current IP address to the allowlist in the exchange’s API management page.
Binance: key works but shows no futures transactions
- Enable the Include futures / perpetual contracts toggle when connecting in dTax.
Key was accidentally given trading permissions
- Delete the key immediately in the exchange’s API Management page and create a new read-only key.