Skip to main content

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:
Basic webhook setup:
  1. Go to Integrations: Dashboard → Integrations → Webhooks
  2. Click “Create Webhook”: Start the setup process
  3. Configure Basic Settings:
  4. Copy Webhook Details: Save URL and secret for external 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
Security Best Practices:
  • 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:
Standard trading signal format:
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:
Filter incoming signals based on criteria:
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:
Monitor webhook health and performance:
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:
Multiple authentication options:
  1. Webhook Secrets:
    • HMAC-SHA256 signature verification
    • Rotating secret keys
    • Header-based authentication
  2. API Key Authentication:
    • Bearer token validation
    • Key-based rate limiting
    • Scope-based permissions
  3. IP Whitelisting:
    • Restrict access by source IP
    • Support for IP ranges and CIDR notation
    • Dynamic IP list management
  4. OAuth 2.0 (for supported integrations):
    • Secure token-based authentication
    • Automatic token refresh
    • Scope-based access control
Recommended security measures:

Integration Examples

TradingView Integration

Complete setup for TradingView PineScript integration:
Configure TradingView alert webhook:
  1. Create TradingView Alert:
    • Condition: Your PineScript strategy
    • Webhook URL: https://api.nimbus.trade/webhook/tv/your-id
    • Message: {{strategy.order.alert_message}}
  2. Configure Nimbus Webhook:
  3. 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:
Configure external price monitoring service:

Webhook Troubleshooting

Common Issues & Solutions

Problem: Webhook requests failing authenticationTroubleshooting Steps:
  1. Verify webhook secret is correctly configured
  2. Check signature generation in sending application
  3. Ensure HMAC algorithm matches (SHA-256)
  4. Validate timestamp tolerance settings
  5. Test with manual curl request
Example Debug Request:
Problem: Long delays between webhook receipt and executionDiagnostic Steps:
  1. Check webhook processing queue status
  2. Verify market hours and trading restrictions
  3. Review filtering and validation rules
  4. Check Hyperliquid network status
  5. Examine position size and liquidity requirements
Optimization Strategies:
  • Simplify filtering logic
  • Use market orders for urgent signals
  • Pre-validate signal format
  • Implement parallel processing
  • Cache frequently accessed data
Problem: Valid signals being rejected or filteredInvestigation Steps:
  1. Review filtering rules and thresholds
  2. Check signal confidence levels
  3. Verify asset symbol mapping
  4. Examine market condition filters
  5. Review rate limiting settings
Common Causes:
  • 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:
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.