How to Connect API Keys

To trade with bots, Coinstream needs access to your AsterDEX account via Pro API keys. The keys let Coinstream place orders on your behalf — without access to withdrawals or account settings.

The whole process takes about 3 minutes.

What You Need

  • An account on AsterDEX with a connected wallet (MetaMask, WalletConnect, etc.)
  • Some funds deposited on AsterDEX

Step 1: Find Your Wallet Address

Your wallet address is the one you used to sign up on AsterDEX.

  1. Open AsterDEX
  2. Look at the top right corner — your wallet address is displayed there (e.g. 0xb6...488c)
  3. Click the copy icon next to the address
  4. Save it — you'll need it in Step 3

Wallet address location

ℹ️

This is your main wallet address (MetaMask, WalletConnect, etc.) — not the API wallet address you'll generate next.

Step 2: Create a Pro API Key

  1. On AsterDEX, go to the Pro API tab
  2. Click "Authorize new API wallet"
  3. Fill in the form:
    • API wallet name — any name you like (e.g. coinstream)
    • API wallet address — click "Generate" to create a new one automatically
  4. Set API restrictions:
    • Enable Read — required
    • Enable Spot trading — if you plan to use spot bots
    • Enable Perps trading — if you plan to use futures bots
⚠️

Do NOT enable Withdrawal permission. It is not needed for trading bots and reduces security.

  1. Days valid — click "Max"
  2. Click "Authorize"

After authorization, the private key will appear on screen (starts with 0x).

Save the private key immediately — it is shown only once! If you lose it, you'll need to create a new API key from scratch.

Pro API authorization form

Step 3: Add Keys to Coinstream

  1. Open @cs_insiderbot and launch the mini app
  2. Go to Settings
  3. Tap "Add API Key"
  4. Enter:
    • Wallet Address — your main wallet address from Step 1
    • Private Key — the Pro API private key from Step 2
  5. Tap "Connect Key"

The system validates your keys and connects them. Once connected, you can start creating bots right away.

API Permissions

PermissionRequiredDescription
ReadYes — alwaysView balances, positions, and order history
Spot tradingFor spot botsPlace and cancel spot orders
Perps tradingFor futures botsPlace and cancel futures orders
WithdrawalNo — never enableNot needed for bots, only increases risk
ℹ️

Enable both Spot and Perps trading on a single key. Coinstream works with one key only — do not create separate keys for spot and futures.

Troubleshooting

ProblemSolution
"Invalid key" errorMake sure you copied the full key including the 0x prefix
Key expiredCreate a new API key on AsterDEX (repeat Step 2)
Insufficient permissionsCheck that Read + Spot/Perps trading are enabled in API restrictions
Can't find wallet addressOpen AsterDEX, look at the top right corner — click the wallet icon
Connection failsVerify you're pasting the main wallet address (Step 1), not the API wallet address

Security

  • Your keys are encrypted during transmission and storage
  • We never store your private key in plain text
  • Withdrawal permission is not required — don't enable it
  • You can revoke any API key at any time on AsterDEX (Pro API tab → Delete)
⚠️

Treat your Pro API private key like a password. Don't share it with anyone or paste it into unknown services.

FAQ

How many keys can I connect?

One. Coinstream works with a single API key. Make sure it has all necessary permissions (Read, Spot trading, Perps trading).

How do I delete or revoke a key?

On AsterDEX: go to the Pro API tab, find the key, and click Delete. In Coinstream: go to Settings and remove the key from your connected keys list.

What if my key expires?

If you set a validity period and it runs out, the bots using that key will stop executing trades. Create a new key (Step 2) and reconnect it in Coinstream (Step 3).

Do I need separate keys for spot and futures?

No. Use a single key with both Spot and Perps trading permissions. Coinstream supports only one connected key.

Is it safe to share my wallet address?

Your wallet address is public by design — it's visible on the blockchain. Sharing it poses no security risk. Never share your private key though.


Keys connected? Create your first trading bot — it takes under 5 minutes.

Need help configuring a bot? Check the Grid Spot Bot guide.