SignalBee
Docs/Security

API Key Best Practices

This guide covers everything you need to know about creating, configuring, and managing exchange API keys securely for use with SignalBee.


What is an API Key?

Think of an API key as a "valet key" for your exchange account. Just like a valet key lets someone drive your car but not open your trunk or glove box, an API key lets SignalBee interact with your exchange while you control exactly what it can and cannot do.

How It Works

Your Exchange PasswordYour API Key
Full access to everythingLimited access you define
Can withdraw fundsโŒ Cannot withdraw (if disabled)
Can change settingsโŒ Cannot change settings
Only you should know itSafe to share with SignalBee

An API key consists of two parts:

  • API Key (public identifier) - Like a username
  • Secret Key (private credential) - Like a password, shown only once when created

Security Note: Your exchange will only show the Secret Key once when you create it. If you lose it, you'll need to create a new API key.


The Golden Rules

Follow these four rules to keep your funds safe:

๐Ÿ”’ Rule 1: NEVER Enable Withdrawal Permissions

SignalBee never needs withdrawal access. If any service asks for withdrawal permissions, treat it as a major red flag.

With withdrawals disabled:

  • โœ… SignalBee can check your balances
  • โœ… SignalBee can place trades
  • โŒ Nobody can move your funds off the exchange

๐Ÿ”‘ Rule 2: Use a Dedicated API Key for SignalBee

Don't reuse API keys across multiple services. Create a fresh key specifically for SignalBee.

Why this matters:

  • If one service is compromised, your other services remain unaffected
  • You can revoke the SignalBee key without disrupting other tools
  • Easier to track which service made which trades

๐Ÿ” Rule 3: Store Your Secret Key Securely

Your exchange shows the secret key only ONCE when you create it. After that, it's gone forever.

Best practices:

  • โœ… Store in a password manager (1Password, Bitwarden, etc.)
  • โœ… Keep an encrypted backup
  • โŒ Never share via email, chat, or messaging apps
  • โŒ Never take screenshots that might sync to cloud storage
  • โŒ Never store in plain text files on your computer

๐Ÿ›ก๏ธ Rule 4: Consider IP Whitelisting

Restrict your API key to only work from SignalBee's servers. Even if your key is somehow exposed, it won't work from any other location.

This is optional but provides an extra security layer. See the IP Whitelisting Setup section below.


Required Permissions by Exchange Type

SignalBee requires different permissions depending on what type of trading you do:

Exchange TypeRead AccountSpot TradingFutures TradingWithdrawals
Spot Onlyโœ… Requiredโœ… RequiredโŒ Not neededโŒ NEVER
Spot + Perpetualโœ… Requiredโœ… Requiredโœ… RequiredโŒ NEVER
Perpetual Onlyโœ… RequiredโŒ Not neededโœ… RequiredโŒ NEVER

Why Each Permission Is Needed

PermissionPurpose
Read AccountCheck your available balances before placing orders to ensure you have sufficient funds
Spot TradingExecute market and limit orders for spot trading pairs (BTC/USDT, ETH/USDT, etc.)
Futures TradingExecute orders on perpetual contract markets (only needed if you trade perpetuals)

Creating Your API Key (General Steps)

These steps apply to most exchanges. For exchange-specific screenshots and details, see your exchange guide.

Step-by-Step Process

  1. Log in to your exchange using your regular credentials and 2FA

  2. Navigate to API Management

    • Usually found under: Profile โ†’ API Management or Settings โ†’ API
    • Look for terms like "API Keys", "API Access", or "Manage API"
  3. Click "Create New API Key" (or similar button)

  4. Set a descriptive label

    • Use something clear like SignalBee Trading or SignalBee-Spot
    • This helps you identify the key's purpose later
  5. Configure permissions carefully:

    • โœ… Enable: Read / View Account
    • โœ… Enable: Spot Trading (if trading spot)
    • โœ… Enable: Futures Trading (only if trading perpetuals)
    • โŒ Leave disabled: Withdrawals, Transfer, Internal Transfer
  6. Set IP restrictions (optional but recommended)

  7. Complete 2FA verification

    • You'll typically need to confirm via authenticator app or email
  8. IMMEDIATELY copy both keys

    • Copy the API Key (public)
    • Copy the Secret Key (shown only once!)
  9. Store securely

    • Paste both keys into your password manager
    • Verify you saved them correctly before closing the page
  10. Add to SignalBee

    • Go to Exchanges โ†’ Add Exchange
    • Select your exchange
    • Paste your API Key and Secret Key
    • Click Test Connection to verify

Security Note: If you accidentally close the page before saving your secret key, you'll need to delete that API key and create a new one. There's no way to recover it.


IP Whitelisting Setup

IP whitelisting restricts your API key to only work from specific IP addresses. This is one of the strongest security measures available.

What Is IP Whitelisting?

When enabled, your exchange will reject API requests from any IP address not on your whitelist. This means:

ScenarioWithout IP WhitelistWith IP Whitelist
SignalBee places tradeโœ… Worksโœ… Works (from whitelisted IP)
Attacker tries to use stolen keyโš ๏ธ Could workโŒ Blocked

SignalBee Server IP Addresses

To configure IP whitelisting, you'll need SignalBee's production server IPs:

Note: Contact support@signalbee.trade for current production IP addresses. We maintain a small set of static IPs specifically for exchange API calls.

How to Set Up IP Whitelisting

  1. When creating or editing your API key, look for "IP Restriction" or "IP Whitelist"
  2. Enable the restriction option
  3. Add each SignalBee IP address provided by support
  4. Save the API key settings

Security Note: If SignalBee's IP addresses change (rare, but possible during infrastructure updates), we'll notify you via email before any changes take effect. Your trades won't fail without warning.


API Key Rotation

Rotating your API keys periodically is a security best practice, similar to changing passwords.

Why Rotate Keys?

  • Limits exposure time if a key was compromised without your knowledge
  • Good security hygiene
  • Required by some compliance frameworks
  • Standard: Every 90 days
  • After any security concern: Immediately
  • After revoking team access: If someone who had access leaves your organization

How to Rotate Your API Key

Follow this process to avoid any downtime:

  1. Create a new API key on your exchange with the same permissions
  2. Copy both the new API Key and Secret Key securely
  3. Update SignalBee:
    • Go to Exchanges โ†’ Select your exchange
    • Click Edit
    • Paste the new credentials
    • Click Save
  4. Test the connection in SignalBee to verify it works
  5. Delete the old API key on your exchange (only after verifying the new one works!)

Security Note: Don't delete your old key until you've confirmed the new one works. If you delete first and the new key has an issue, you'll temporarily lose trading ability.


Troubleshooting Common Issues

If you're having problems with your API key, check this table:

ProblemLikely CauseSolution
"Invalid API Key"Typo when copyingRe-copy the API key carefully. Watch for extra spaces at the beginning or end.
"Invalid Signature"Wrong or corrupted Secret KeyRe-copy the Secret Key. If lost, create a new API key.
"Permission Denied"Missing required permissionsGo to your exchange and enable Read + Trade permissions.
"IP Not Whitelisted"Using IP restrictionAdd SignalBee's IPs to your whitelist, or disable IP restriction.
"API Key Expired"Some exchanges expire keysCreate a new API key on your exchange.
"Timestamp Error"Clock synchronization issueUsually temporary. If persistent, check your exchange's server status.
"Rate Limited"Too many requestsWait a few minutes and try again. Check for duplicate webhooks in your signal provider.
"Insufficient Balance"Not enough fundsEnsure you have sufficient balance in the correct account (Spot vs Funding vs Futures).

Still Having Issues?

  1. Double-check you're using the correct API key for the correct exchange
  2. Verify the key hasn't been revoked on your exchange
  3. Ensure you're connecting to the right environment (mainnet vs testnet)
  4. Contact support@signalbee.trade with your exchange name and error message

What to Do If Your Key Is Compromised

If you suspect your API key has been exposed or stolen, act immediately:

Emergency Response Steps

  1. ๐Ÿšจ IMMEDIATELY revoke the key on your exchange

    • Don't wait - do this first
    • Log in to your exchange โ†’ API Management โ†’ Delete/Revoke the key
  2. Review recent activity

    • Check your exchange trade history for any unauthorized trades
    • Note any suspicious activity with timestamps
  3. Create a new API key

    • Follow the creation steps above
    • This time, consider enabling IP whitelisting
  4. Update SignalBee

    • Go to Exchanges โ†’ Edit your exchange
    • Enter the new API credentials
    • Test the connection
  5. Enable additional security

    • Set up IP whitelisting if not already enabled
    • Review your exchange account security settings
  6. Investigate the compromise

    • How might the key have been exposed?
    • Did you share it accidentally?
    • Is your computer/password manager secure?
  7. Contact support if needed

Remember: Even if your API key is compromised, your funds cannot be withdrawn if you followed Rule 1 and never enabled withdrawal permissions.


API Key Checklist

Use these checklists to ensure your API key is configured correctly.

Before Adding to SignalBee

  • Created with a descriptive label (e.g., "SignalBee Trading")
  • Read/View Account permission โœ… enabled
  • Spot Trading permission โœ… enabled (if trading spot)
  • Futures Trading permission โœ… enabled (only if trading perpetuals)
  • Withdrawal permission โŒ disabled
  • Transfer permissions โŒ disabled
  • Secret Key saved in password manager
  • IP whitelist configured (optional but recommended)

After Adding to SignalBee

  • Connection test passed โœ…
  • Account balances visible in SignalBee
  • Test webhook/signal executed successfully
  • Confirmed trade appeared in exchange history

Periodic Security Review (Every 90 Days)

  • API key still has correct permissions (no unwanted additions)
  • No unauthorized API keys on your exchange account
  • Consider rotating to a fresh API key
  • Review recent trades for any anomalies