What are Webhooks?
Webhooks are HTTP endpoints that allow external services to send real-time data to Nimbus. They enable seamless integration with trading platforms, alert services, and third-party applications for automated strategy execution and notification management.Supported Webhook Types
Nimbus supports multiple webhook types for different use cases:TradingView Integration
PineScript strategy execution:
- Strategy alerts from TradingView
- Custom signal generation
- Multi-timeframe analysis
- Automated position management
Custom Alert Systems
External alert processing: - Price alerts from monitoring services -
Technical indicator signals - News-based trading triggers - Social sentiment
alerts
Portfolio Management
Portfolio rebalancing triggers: - External rebalancing signals - Risk
management alerts - Asset allocation adjustments - Performance-based
modifications
Risk Management
Risk monitoring webhooks:
- Stop-loss triggers
- Volatility alerts
- Correlation warnings
- Emergency position closing
Setting Up Webhooks
Step 1: Create Webhook Endpoint
Navigate to your webhook management dashboard:Create New Webhook
Create New Webhook
Basic webhook setup:
- Go to Integrations: Dashboard → Integrations → Webhooks
- Click “Create Webhook”: Start the setup process
-
Configure Basic Settings:
- Copy Webhook Details: Save URL and secret for external configuration
Security Configuration
Security Configuration
Secure your webhook endpoint:
- Secret Verification: Validate requests using webhook secret
- IP Whitelisting: Restrict access to known IP addresses
- Rate Limiting: Prevent abuse with request limits
- Signature Validation: Verify request authenticity
- HTTPS Only: Ensure encrypted data transmission
- Regenerate secrets regularly (monthly recommended)
- Monitor webhook activity for unusual patterns
- Use different secrets for different integrations
- Enable logging for security audit trails
Step 2: Message Format Configuration
Define how incoming webhook data should be processed:Message Schema Definition
Message Schema Definition
Standard trading signal format:
Custom Field Mapping
Custom Field Mapping
Map webhook fields to Nimbus parameters:Supported Transformations:
- Data type conversion: String to number, boolean parsing
- Unit conversion: Percentage to decimal, time zone conversion
- Conditional mapping: Different mappings based on signal type
- Default values: Fallback values when fields are missing
Advanced Webhook Features
Conditional Processing
Set up rules for when and how webhooks should be processed:Signal Filtering
Signal Filtering
Filter incoming signals based on criteria:
Conditional Logic
Conditional Logic
Execute different actions based on signal properties:
Multi-Webhook Coordination
Coordinate signals from multiple webhook sources:Signal Aggregation
Combine signals from multiple sources:
- Require confirmation from 2+ sources
- Weight signals by source reliability
- Resolve conflicting signals intelligently
- Track correlation between sources
Failover & Redundancy
Ensure reliability with backup sources:
- Automatic failover to backup webhooks
- Health monitoring for all endpoints
- Alert when primary sources fail
- Load balancing across endpoints
Webhook Management
Monitoring & Analytics
Track webhook performance and reliability:Performance Metrics
Performance Metrics
Monitor webhook health and performance:
Alert Configuration
Alert Configuration
Set up notifications for webhook issues:
- High Error Rate: Alert when error rate > 5%
- Latency Spike: Notify when response time > 1 second
- Authentication Failures: Immediate alert for security issues
- Signal Quality: Alert when signal confidence drops
- Execution Failures: Notify when trade execution fails
- Rate Limiting: Warning when approaching rate limits
Webhook Testing & Debugging
Tools for testing and troubleshooting webhook integrations:Test Endpoints
Validate webhook configuration:
- Send test signals to validate processing
- Check field mapping and transformations
- Verify filtering and conditional logic
- Test error handling and edge cases
Debug Tools
Troubleshoot webhook issues:
- Real-time request/response logging
- Schema validation results
- Processing step breakdown
- Error message details and context
Webhook Security
Authentication & Authorization
Secure your webhook endpoints against unauthorized access:Authentication Methods
Authentication Methods
Multiple authentication options:
-
Webhook Secrets:
- HMAC-SHA256 signature verification
- Rotating secret keys
- Header-based authentication
-
API Key Authentication:
- Bearer token validation
- Key-based rate limiting
- Scope-based permissions
-
IP Whitelisting:
- Restrict access by source IP
- Support for IP ranges and CIDR notation
- Dynamic IP list management
-
OAuth 2.0 (for supported integrations):
- Secure token-based authentication
- Automatic token refresh
- Scope-based access control
Security Best Practices
Security Best Practices
Recommended security measures:
Integration Examples
TradingView Integration
Complete setup for TradingView PineScript integration:TradingView Webhook Setup
TradingView Webhook Setup
Configure TradingView alert webhook:
-
Create TradingView Alert:
- Condition: Your PineScript strategy
- Webhook URL:
https://api.nimbus.trade/webhook/tv/your-id
- Message:
{{strategy.order.alert_message}}
-
Configure Nimbus Webhook:
-
Test Integration:
- Send test alert from TradingView
- Verify signal processing in Nimbus
- Check trade execution on Hyperliquid
Custom Alert Service
Set up webhooks for custom monitoring and alert systems:Price Alert Integration
Price Alert Integration
Configure external price monitoring service:
Webhook Troubleshooting
Common Issues & Solutions
Authentication Failures
Authentication Failures
Problem: Webhook requests failing authenticationTroubleshooting Steps:
- Verify webhook secret is correctly configured
- Check signature generation in sending application
- Ensure HMAC algorithm matches (SHA-256)
- Validate timestamp tolerance settings
- Test with manual curl request
Processing Delays
Processing Delays
Problem: Long delays between webhook receipt and executionDiagnostic Steps:
- Check webhook processing queue status
- Verify market hours and trading restrictions
- Review filtering and validation rules
- Check Hyperliquid network status
- Examine position size and liquidity requirements
- Simplify filtering logic
- Use market orders for urgent signals
- Pre-validate signal format
- Implement parallel processing
- Cache frequently accessed data
Signal Rejection
Signal Rejection
Problem: Valid signals being rejected or filteredInvestigation Steps:
- Review filtering rules and thresholds
- Check signal confidence levels
- Verify asset symbol mapping
- Examine market condition filters
- Review rate limiting settings
- Signal confidence below threshold
- Asset not in allowed list
- Position size exceeds limits
- Rate limit reached
- Market hours restriction
Advanced Webhook Patterns
Webhook Chaining
Chain multiple webhooks for complex workflows:Sequential Processing
Sequential Processing
Chain webhooks for multi-step workflows:
Next Steps
PineScript Integration
Set up TradingView PineScript strategy execution.
Backtesting Engine
Test webhook-driven strategies against historical data.
Signal-Based Trading
Combine webhooks with Nimbus’s signal engine.
Portfolio Dashboard
Monitor webhook-driven strategy performance.
Webhooks provide powerful integration capabilities but require careful
security and error handling. Always test thoroughly in a sandbox environment
before deploying to production trading.