Managing API Keys Safely
API keys allow third-party applications, trading bots, and your own scripts to interact with your ByteExchange account. Proper key management is essential for security.
Creating an API Key
- Go to Settings > API Management.
- Click Create API Key.
- Give it a descriptive label (e.g., "Trading Bot", "Portfolio Tracker").
- Set permissions:
- Read — View balances, orders, and market data
- Trade — Place and cancel orders
- Withdraw — Initiate withdrawals (use with extreme caution)
- Set IP restriction (strongly recommended).
- Verify with 2FA and email code.
- Copy and securely store the API Key and Secret Key.
Warning: The Secret Key is shown only once. If you lose it, you must delete the key and create a new one.
Permission Best Practices
- Principle of least privilege: Only grant the permissions your application needs.
- Never enable Withdraw unless absolutely necessary.
- Read-only keys are safest for portfolio trackers and monitoring tools.
IP Restriction
Always restrict your API keys to specific IP addresses:
- Add the IP address(es) of the server running your bot.
- If your IP changes frequently, use a VPN with a static IP.
- Unrestricted keys are vulnerable if the key is compromised.
Security Checklist
- Store API keys in environment variables, never in source code.
- Do not share keys in screenshots, chat messages, or forums.
- Rotate keys periodically (every 3-6 months).
- Delete unused keys immediately.
- Monitor API key activity in your account logs.
What to Do If Compromised
- Immediately delete the compromised key in API Management.
- Check your recent order and withdrawal history.
- Change your account password and 2FA.
- Contact support if you notice unauthorized activity.