Overview
NeuraTrade uses CCXT to connect to cryptocurrency exchanges. The platform supports both HTTP and gRPC protocols for exchange communication, with automatic fallback.Supported Exchanges
NeuraTrade supports all CCXT-compatible exchanges. Popular exchanges include:- Binance
- Coinbase/Coinbase Pro
- Kraken
- OKX
- Bitget
- Bybit
- And 100+ more via CCXT
Exchange Service Configuration
Service URL
URL for the CCXT exchange integration service.The CCXT service runs as a separate TypeScript/Bun microservice that provides exchange connectivity.
Timeout for CCXT service requests.Increase this value for slower exchanges or high-latency connections.
gRPC Configuration
NeuraTrade supports both HTTP and gRPC communication with the CCXT service:- HTTP: REST API (fallback mode)
- gRPC: High-performance binary protocol (preferred)
API Key Setup
Runtime Configuration
Store exchange API keys in~/.neuratrade/config.json:
config.json
Environment Variables (Optional)
You can override config.json settings with environment variables:Required Permissions
Minimum Permissions (Read-Only)
View-Only Trading
View-Only Trading
For market data and paper trading:
- ✅ Read Market Data
- ✅ Read Account Balances
- ✅ Read Open Orders
- ✅ Read Trade History
- ❌ Trading (disabled)
- ❌ Withdrawals (disabled)
Live Trading Permissions
Live Trading Requirements
Live Trading Requirements
For autonomous trading:
- ✅ Read Market Data
- ✅ Read Account Balances
- ✅ Read Open Orders
- ✅ Read Trade History
- ✅ Spot Trading
- ✅ Futures Trading (if using futures strategies)
- ❌ Withdrawals (recommended to disable)
- ❌ Sub-account transfers (recommended to disable)
Exchange-Specific Setup
Binance
Bitget
OKX
OKX Configuration
OKX Configuration
OKX requires API keys with passphrase authentication.
- Create API at https://www.okx.com/account/my-api
- Enable “Trade” permission
- Set a strong passphrase
- Use IP whitelisting
Kraken
Kraken Configuration
Kraken Configuration
Kraken uses API keys with custom permission sets.
- Create API at https://www.kraken.com/u/security/api
- Enable “Query Funds”, “Query Open Orders & Trades”, “Create & Modify Orders”
- Add API key description
Exchange Management API
Get Exchange Configuration
Response
Add Exchange
Blacklist Exchange
Temporarily disable an exchange:Remove from Blacklist
Refresh Exchanges
Re-initialize all non-blacklisted exchanges:Symbol Format Handling
NeuraTrade automatically converts symbol formats for different exchanges:Error Handling
Symbol Not Found
Exchange Unavailable
Unsupported Operation
Rate Limiting
NeuraTrade respects exchange rate limits:- Automatic retry with exponential backoff
- Per-exchange rate limit tracking
- Fallback to alternate exchanges when available
Health Checks
Exchange Connectivity
Security Best Practices
- API Key Isolation: Create separate API keys for NeuraTrade
- IP Whitelisting: Restrict API access to your server IPs
- Minimal Permissions: Only enable required permissions
- Disable Withdrawals: Never enable withdrawal permissions
- Monitor Usage: Track API key activity on exchange dashboards
- Rotate Keys: Regularly update API keys (quarterly recommended)
- Separate Funds: Use sub-accounts or separate wallets for trading
Troubleshooting
Connection Issues
CCXT Service Not Reachable
CCXT Service Not Reachable
Authentication Errors
Authentication Errors
Performance Optimization
- Enable gRPC: Faster than HTTP for high-frequency requests
- Batch Requests: Use bulk ticker/market endpoints
- Cache Results: Use Redis caching for market data
- Connection Pooling: Reuse HTTP connections