Get Crypto Exchange API Key
To use HTX and Binance skills in BAIclaw, you need to obtain API keys from each exchange. These keys allow BAIclaw to access your exchange accounts for trading, balance queries, and other supported operations.
Supported Exchanges
| Exchange | API Key Management Link |
|---|---|
| HTX | HTX API Management |
| Binance | Binance API Management |
HTX API Key Application
Prerequisites
- HTX account (Register)
- Completed identity verification (KYC)
Application Steps
- Log in to HTX API Management
- Click Create API Key
- Select permissions:
- Read: Market data queries, account info
- Trade: Order placement, cancellation, etc.
- Set IP whitelist (optional, but recommended)
- Complete security verification (verification code/email/phone)
- Copy API Key and Secret Key, store safely
- API Key and Secret Key are shown only once, save immediately
- Recommended to set IP whitelist to limit API access
- Never share your Secret Key with anyone
- Regularly check API key usage records
Permission Description
| Permission | Use Cases |
|---|---|
| Read | Price queries, account balance, position queries |
| Trade | Order placement, cancellation, transfers, etc. |
Tutorial: HTX API Key Guide
Binance API Key Application
Prerequisites
- Binance account (Register)
- Completed identity verification (KYC)
Application Steps
- Log in to Binance API Management
- Click Create API Key
- Select API type:
- System Generated: Recommended, auto-generates key pair
- Manually Entered: Generate your own RSA key pair
- Complete 2FA verification
- Copy API Key, download and securely store Secret Key
- Configure IP whitelist (optional but recommended)
- Enable permissions as needed:
- Read: Market data, account info
- Spot & Margin Trading: Spot trading, margin operations
- Futures: Perpetual/quarterly contracts
- Withdrawal: Asset withdrawal - Enable with caution
Tutorial: Binance API Key Guide
- Secret Key is shown only once, download and save immediately
- Strongly recommend setting IP whitelist to restrict access to your devices only
- Do not enable withdrawal permission unless you fully trust the use case
- If your key is compromised, immediately delete and recreate in the API management page
Permission Description
| Permission | Use Cases |
|---|---|
| Read | Market data, account info |
| Spot Trading | Spot trading, account transfers |
| Futures Trading | Perpetual/quarterly contract operations |
| Withdrawal | Asset withdrawal - High risk permission |
Configure in BAIclaw
After obtaining your API Key, configure based on the skill you're using:
- Open BAIclaw, go to Settings page
- Find the corresponding configuration item
- Enter in the skill configuration:
- API Key
- Secret Key
- Save configuration
FAQ
Q: What if my API Key is leaked?
Immediately go to the exchange's API management page:
- Delete the compromised API Key
- Create a new API Key
- Update the configuration in BAIclaw
Q: API request denied?
- Check if the API Key is correct
- Confirm the required permissions are enabled
- Check IP whitelist settings (if configured)
- Verify account status is normal
Q: How to restrict API access permissions?
Recommendations:
- Enable only the minimum permissions required
- Set IP whitelist
- Regularly rotate API Keys