Skip to main content

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

ExchangeAPI Key Management Link
HTXHTX API Management
BinanceBinance API Management

HTX API Key Application

Prerequisites

  • HTX account (Register)
  • Completed identity verification (KYC)

Application Steps

  1. Log in to HTX API Management
  2. Click Create API Key
  3. Select permissions:
    • Read: Market data queries, account info
    • Trade: Order placement, cancellation, etc.
  4. Set IP whitelist (optional, but recommended)
  5. Complete security verification (verification code/email/phone)
  6. Copy API Key and Secret Key, store safely
[Security Warning]
  • 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

PermissionUse Cases
ReadPrice queries, account balance, position queries
TradeOrder placement, cancellation, transfers, etc.

Tutorial: HTX API Key Guide


Binance API Key Application

Prerequisites

  • Binance account (Register)
  • Completed identity verification (KYC)

Application Steps

  1. Log in to Binance API Management
  2. Click Create API Key
  3. Select API type:
    • System Generated: Recommended, auto-generates key pair
    • Manually Entered: Generate your own RSA key pair
  4. Complete 2FA verification
  5. Copy API Key, download and securely store Secret Key
  6. Configure IP whitelist (optional but recommended)
  7. 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

[Security Warning]
  • 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

PermissionUse Cases
ReadMarket data, account info
Spot TradingSpot trading, account transfers
Futures TradingPerpetual/quarterly contract operations
WithdrawalAsset withdrawal - High risk permission

Configure in BAIclaw

After obtaining your API Key, configure based on the skill you're using:

  1. Open BAIclaw, go to Settings page
  2. Find the corresponding configuration item
  3. Enter in the skill configuration:
    • API Key
    • Secret Key
  4. Save configuration

FAQ

Q: What if my API Key is leaked?

Immediately go to the exchange's API management page:

  1. Delete the compromised API Key
  2. Create a new API Key
  3. 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