StockAlert icon

StockAlert

Interact with StockAlert.pro API

Actions8

Overview

This node integrates with the StockAlert.pro API to manage webhooks related to stock alert events. Specifically, the Webhook - Create operation allows users to register a webhook URL that will receive notifications when certain stock alert events occur, such as when an alert is triggered, created, updated, or deleted.

Common scenarios for this node include:

  • Automatically triggering workflows in response to stock alerts without polling.
  • Integrating real-time stock alert notifications into custom applications or monitoring dashboards.
  • Receiving event-driven updates to maintain synchronization between StockAlert.pro and other systems.

For example, a user can create a webhook that listens for "Alert Triggered" events and then automatically sends a notification email or updates a database record whenever a stock alert condition is met.

Properties

Name Meaning
Webhook URL The URL endpoint where webhook notifications will be sent. Example: https://your-app.com/webhook
Events The specific stock alert events that trigger the webhook. Options include:
- Alert Triggered: When an alert condition is met
- Alert Created: When a new alert is created
- Alert Updated: When an alert is updated
- Alert Deleted: When an alert is deleted

Output

The node outputs an array of JSON objects representing the created webhook(s). Each object contains details returned by the StockAlert.pro API about the webhook, typically including its unique identifier, URL, subscribed events, and status.

No binary data output is involved in this operation.

Example output JSON structure (simplified):

[
  {
    "id": "webhook-id-123",
    "url": "https://your-app.com/webhook",
    "events": ["alert.triggered", "alert.created"],
    "status": "active"
  }
]

Dependencies

  • Requires an API key credential for authenticating with the StockAlert.pro API.
  • The node uses HTTP requests to communicate with the StockAlert.pro service endpoints.
  • Proper network access to the specified webhook URL is necessary for receiving event notifications.

Troubleshooting

  • Invalid Webhook URL: Ensure the webhook URL is a valid, publicly accessible HTTPS endpoint capable of receiving POST requests.
  • Authentication Errors: Verify that the API key credential is correctly configured and has sufficient permissions.
  • Event Subscription Issues: Confirm that at least one valid event type is selected; otherwise, the webhook creation may fail.
  • API Rate Limits: Frequent webhook creation or deletion might hit API rate limits; handle errors accordingly.
  • Error Messages: If the node throws errors related to request failures, check network connectivity and API service status.

Links and References

Discussion