The /keys command manages exchange API credentials for trading.
Adding Credentials
- Run
/keys in Telegram
- Select Perpetual or Spot
- Choose the exchange to configure
- Enter your API key and secret
For security, only enable read + trade permissions on your API keys. Never enable withdraw or transfer permissions.
Supported Exchanges
| Exchange | Spot | Perpetual |
|---|
| Binance | binance | binance_perpetual |
| Bybit | bybit | bybit_perpetual |
| OKX | okx | okx_perpetual |
| Kucoin | kucoin | kucoin_perpetual |
| Kraken | kraken | - |
| Coinbase | coinbase | - |
| Hyperliquid | - | hyperliquid_perpetual |
| Gate.io | gate_io | gate_io_perpetual |
Via API
List Credentials
curl -u admin:admin http://localhost:8000/accounts/master_account/credentials
Response:
["binance", "binance_perpetual", "hyperliquid_perpetual"]
Add Credentials
curl -X POST http://localhost:8000/accounts/add-credential/master_account/binance \
-u admin:admin \
-H "Content-Type: application/json" \
-d '{
"binance_api_key": "your-api-key",
"binance_api_secret": "your-api-secret"
}'
Wait 2-3 seconds after adding credentials before making API calls. The system needs time to initialize the exchange connection.
Delete Credentials
curl -X POST http://localhost:8000/accounts/delete-credential/master_account/binance \
-u admin:admin
Multiple Accounts
You can create multiple accounts to separate credentials:
# Create account
curl -X POST "http://localhost:8000/accounts/add-account?account_name=trading_account" \
-u admin:admin
# Add credentials to new account
curl -X POST http://localhost:8000/accounts/add-credential/trading_account/okx \
-u admin:admin \
-H "Content-Type: application/json" \
-d '{
"okx_api_key": "your-api-key",
"okx_secret_key": "your-secret-key",
"okx_passphrase": "your-passphrase"
}'
Use cases for multiple accounts:
- Separate paper trading from live trading
- Isolate different strategies
- Manage team access with different credentials